nextcloud/lib/private/legacy
Josh Richards 2c58184b85 fix(previews): Don't crash on animated WEBP images
Fixes #30029 and #37263

libgd handles animated WEBP images poorly and generates a meaningless error message as a result. We were returning a 500 error for these preview requests (web) and a fatal error at the command-line (occ). Now we bypass libgd if the we detect an animated WEBP image (and simply don't generate the preview). No more 500 error. Should fix occ too.

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
2024-08-06 16:07:24 +00:00
..
template fix: Correctly add module content type to script tags when scripts with versions are used 2023-07-18 13:10:37 +02:00
OC_API.php Refactor "substr" calls to improve code readability 2023-07-07 04:54:20 +03:30
OC_App.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
OC_Defaults.php chore!: Drop \OC_Defaults::getLogoClaim 2023-05-31 15:17:20 +02:00
OC_EventSource.php refactor: migrate OC_EventSource to dependency injection 2023-06-03 21:42:51 +02:00
OC_FileChunking.php Use typed version of IConfig::getSystemValue as much as possible 2023-04-05 12:50:08 +02:00
OC_Files.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
OC_Helper.php chore: apply changes from Nextcloud coding standards 1.1.1 2023-11-23 10:36:13 +01:00
OC_Hook.php composer run cs:fix 2023-01-20 11:45:08 +01:00
OC_Image.php fix(previews): Don't crash on animated WEBP images 2024-08-06 16:07:24 +00:00
OC_JSON.php composer run cs:fix 2023-01-20 11:45:08 +01:00
OC_Response.php Change X-Robots-Tag header from "none" to "noindex, nofollow" 2023-02-15 20:16:51 +01:00
OC_Template.php add separate event for rendering login page template 2023-08-17 10:57:56 +02:00
OC_User.php fix(logging): Restore the option to log with debug level 2024-07-22 14:45:44 +02:00
OC_Util.php fix(autoloader): no apcu no side effects 2023-09-08 16:55:39 +02:00