1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-23 19:32:29 +01:00
BookStack/tests/Uploads
Dan Brown 31f1dca8a8
Added detection and thumbnail bypass for apng images
Adds apng sniffing when generating thumbnails with retained ratios to
serve the original image files, as we do for GIF images, to prevent
the image being resized to a static version.

Is more tricky than GIF since apng file mimes and extensions
are the same as png, we have to detect part of the file header
to sniff the type. Means we have to sniff at a later stage
than GIF since we have to load the image file data.

Made some changes to the image thubmnail caching while doing
this work to fit in with this handling.

Added test to cover.
For #3136.
2022-01-04 13:10:35 +00:00
..
AttachmentTest.php Merge branch 'laravel_upgrade' 2021-11-04 22:42:35 +00:00
AvatarTest.php Updated failing tests, Applied StyleCI changes 2021-12-18 16:41:42 +00:00
DrawioTest.php Laravel 7.x Shift (#3011) 2021-10-26 22:04:18 +01:00
ImageTest.php Added detection and thumbnail bypass for apng images 2022-01-04 13:10:35 +00:00
UsesImages.php Added detection and thumbnail bypass for apng images 2022-01-04 13:10:35 +00:00