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 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
..
animated.png Added detection and thumbnail bypass for apng images 2022-01-04 13:10:35 +00:00
bad-php.base64 Moved sketchy file samples to base64 equivilents 2021-02-06 00:16:27 +00:00
bad-phtml-png.base64 Moved sketchy file samples to base64 equivilents 2021-02-06 00:16:27 +00:00
bad-phtml.base64 Moved sketchy file samples to base64 equivilents 2021-02-06 00:16:27 +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