BookStack/app/Util
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
..
CspService.php Altered the parsing of custom head to prevent htmlentities on content 2021-09-12 16:19:17 +01:00
HtmlContentFilter.php Done a round of phpstan fixes 2021-11-06 00:32:01 +00:00
HtmlNonceApplicator.php Altered the parsing of custom head to prevent htmlentities on content 2021-09-12 16:19:17 +01:00
WebSafeMimeSniffer.php Added detection and thumbnail bypass for apng images 2022-01-04 13:10:35 +00:00