Skip to content

Commit

Permalink
Fix PDF previews with Imaginary
Browse files Browse the repository at this point in the history
This solves #38911

cc @szaimen @solracsf 

Signed-off-by: Daniel Hansson <[email protected]>
  • Loading branch information
enoch85 authored Sep 28, 2023
1 parent bcda331 commit 0edcde4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/private/Preview/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ private function getSmallImagePreview(ISimpleFolder $previewFolder, array $previ

try {
return $this->getCachedPreview($previewFiles, $width, $height, $crop, $mimeType, $prefix);
} catch (NotFoundException $e) {
} catch (NotFoundException | \InvalidArgumentException $e) {
return $this->generateProviderPreview($previewFolder, $file, $width, $height, $crop, false, $mimeType, $prefix);
}
}
Expand Down

0 comments on commit 0edcde4

Please sign in to comment.