diff --git a/Adapter/Common.php b/Adapter/Common.php index 5e9de61..c3a0523 100644 --- a/Adapter/Common.php +++ b/Adapter/Common.php @@ -107,7 +107,11 @@ public function fixOrientation() throw new \RuntimeException('You need to EXIF PHP Extension to use this function'); } - $exif = @exif_read_data($this->source->getInfos()); + try { + $exif = @exif_read_data($this->source->getInfos()); + } catch (\Exception $e) { + $exif = false; + } if ($exif === false || !array_key_exists('Orientation', $exif)) { return $this;