aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/data/media
diff options
context:
space:
mode:
authorthiemowmde <thiemo.kreuz@wikimedia.de>2023-09-12 09:34:59 +0200
committerthiemowmde <thiemo.kreuz@wikimedia.de>2023-09-12 09:47:16 +0200
commit986290ffedf8f0df6252ef4ef674fd4fa189375c (patch)
tree29375620bd55b045e2d592432670fe75bccc77ae /tests/phpunit/data/media
parentceedcc8a9b525930520c81ee668693d82d775574 (diff)
downloadmediawikicore-986290ffedf8f0df6252ef4ef674fd4fa189375c.tar.gz
mediawikicore-986290ffedf8f0df6252ef4ef674fd4fa189375c.zip
Make ExifRotationTest dramatically faster
Down from about 1000ms to 200ms. By using much smaller images. The absolute size of the images is not relevant for this test. Only the ratio. There was nothing special about the "landscape-plain.jpg" image. But "portrait-rotated.jpg" was: It's technically stored in landscape, but marked with an EXIF tag for rotation. I used exiftool to copy the EXIF data to the smaller version, so it behaves the same as before. Change-Id: Ie977dfbceff02e4dfde38a5ef82e8ff81b4d6980
Diffstat (limited to 'tests/phpunit/data/media')
-rw-r--r--tests/phpunit/data/media/landscape-plain.jpgbin38771 -> 2817 bytes
-rw-r--r--tests/phpunit/data/media/portrait-rotated.jpgbin38577 -> 6474 bytes
2 files changed, 0 insertions, 0 deletions
diff --git a/tests/phpunit/data/media/landscape-plain.jpg b/tests/phpunit/data/media/landscape-plain.jpg
index cf29655511bb..3a9fd8a7aca6 100644
--- a/tests/phpunit/data/media/landscape-plain.jpg
+++ b/tests/phpunit/data/media/landscape-plain.jpg
Binary files differ
diff --git a/tests/phpunit/data/media/portrait-rotated.jpg b/tests/phpunit/data/media/portrait-rotated.jpg
index 445feaedcf10..5875b583ba2d 100644
--- a/tests/phpunit/data/media/portrait-rotated.jpg
+++ b/tests/phpunit/data/media/portrait-rotated.jpg
Binary files differ