Skip to content

Commit

Permalink
Merge pull request #93 from hultberg/eh-suppress-error-exif
Browse files Browse the repository at this point in the history
Suppress exif_read_data errors
  • Loading branch information
adityapatadia authored Sep 9, 2017
2 parents d1b3cbd + 1337f78 commit 10c3ca9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ImageResize.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ public function imageCreateJpegfromExif($filename)
return $img;
}

$exif = exif_read_data($filename);
$exif = @exif_read_data($filename);

if (!$exif || !isset($exif['Orientation'])) {
return $img;
Expand Down

0 comments on commit 10c3ca9

Please sign in to comment.