Add a new helper method to generate static thumbnails
authorAlexander Ebert <ebert@woltlab.com>
Wed, 31 Jul 2024 14:06:43 +0000 (16:06 +0200)
committerAlexander Ebert <ebert@woltlab.com>
Wed, 31 Jul 2024 14:06:43 +0000 (16:06 +0200)
commite8685e2def01faaa5a6d5c63edec837dda033a44
tree4992d5c72fe00f41e1ffeb0c567eac480e07e2d8
parent7e9f7d5cd8d20cb88b92aad67372228ce88cd82e
Add a new helper method to generate static thumbnails

Processing animated images is an unpredictable process that is not only incredibly expensive but due to unknown resource limits very unstable.

Using static thumbnails that simply pick the first frame solves this issue by offering a meaningful thumbnail without using lots of resources.
wcfsetup/install/files/lib/system/file/processor/FileProcessor.class.php
wcfsetup/install/files/lib/system/file/processor/exception/DamagedImage.class.php
wcfsetup/install/files/lib/system/image/adapter/ISingleFrameImageAdapter.class.php [new file with mode: 0644]
wcfsetup/install/files/lib/system/image/adapter/ImageAdapter.class.php
wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php
wcfsetup/install/files/lib/system/image/adapter/exception/ImageNotProcessable.class.php [new file with mode: 0644]
wcfsetup/install/files/lib/system/image/adapter/exception/ImageNotReadable.class.php [new file with mode: 0644]