try {
$imageAdapter->loadSingleFrameFromFile($file->getPathname());
- } catch (SystemException) {
+ } catch (SystemException | ImageNotReadable) {
throw new DamagedImage($file->fileID);
+ } catch (ImageNotProcessable $e) {
+ logThrowable($e);
+
+ return;
}
$filename = FileUtil::getTemporaryFilename(extension: 'webp');
try {
$imageAdapter->loadSingleFrameFromFile($file->getPathname());
- } catch (ImageNotReadable | ImageNotProcessable $e) {
+ } catch (SystemException | ImageNotReadable $e) {
throw new DamagedImage($file->fileID, $e);
+ } catch (ImageNotProcessable $e) {
+ logThrowable($e);
+
+ return;
}
}