1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-24 03:42:32 +01:00
BookStack/tests/test-data
Dan Brown 32e7f0a2e6
Made display thumbnail generation use original data if smaller
Thumbnail generation would sometimes create a file larger than the
original, if the original was already well optimized, therefore making
the thumbnail counter-productive. This change compares the sizes of the
original and the generated thumbnail, and uses the smaller of the two if
the thumbnail does not change the aspect ratio of the image.

Fixes #1751
2019-12-22 12:44:49 +00:00
..
bad.php Hardened image file validation by removing custom validation 2019-03-20 23:59:55 +00:00
bad.phtml Added extension whitelist for image uploads 2019-03-21 19:43:15 +00:00
bad.phtml.png Prevent dbl exts. on img upload, Randomized attachment upload names 2019-03-24 19:08:21 +00:00
compressed.png Made display thumbnail generation use original data if smaller 2019-12-22 12:44:49 +00:00
test-file.txt Added in attachment tests 2016-10-23 15:25:04 +01:00
test-image.png Added drawing endpoint tests 2018-01-28 13:18:28 +00:00