1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-11-24 11:52:34 +01:00
BookStack/app
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
..
Actions Fixed failing webhook test cases 2022-01-03 19:51:13 +00:00
Api Added API search endpoint 2021-11-14 16:28:01 +00:00
Auth Merge branch 'webhooks' 2021-12-18 11:40:08 +00:00
Config Allowed database queue usage where desired 2021-12-13 18:34:18 +00:00
Console Updated failing tests, Applied StyleCI changes 2021-12-18 16:41:42 +00:00
Entities Applied latest StyleCI changes 2021-12-20 17:40:27 +00:00
Exceptions Fixed related permissions query not considering drafts 2021-11-30 00:06:17 +00:00
Facades Added ability to clone books 2021-12-19 19:20:31 +00:00
Http Added timeout and debugging statuses to webhooks 2022-01-03 19:42:48 +00:00
Interfaces Tweaked custom command registration, Added StyleCI fixes 2021-11-22 22:22:31 +00:00
Notifications Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
Providers Aligned password length requirements 2021-12-18 16:33:40 +00:00
Settings Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
Theming Added webhook_call_before theme event hook 2022-01-03 18:22:03 +00:00
Traits Done a round of phpstan fixes 2021-11-06 00:32:01 +00:00
Translation Apply fixes from StyleCI 2021-08-21 14:49:40 +00:00
Uploads Added detection and thumbnail bypass for apng images 2022-01-04 13:10:35 +00:00
Util Added detection and thumbnail bypass for apng images 2022-01-04 13:10:35 +00:00
Application.php Apply fixes from StyleCI 2021-06-26 15:23:15 +00:00
helpers.php Merge branch 'v21.05.x' 2021-07-03 12:02:13 +01:00
Model.php Applied latest StyleCI changes 2021-11-06 22:00:33 +00:00