diff --git a/lib/Exif.php b/lib/Exif.php index b17c21ec..7ea4d711 100644 --- a/lib/Exif.php +++ b/lib/Exif.php @@ -269,6 +269,10 @@ class Exif return [$height, $width]; } + if ($width <= 0 || $height <= 0 || $width > 10000 || $height > 10000) { + return [0, 0]; + } + return [$width, $height]; }