Skip to content

Commit

Permalink
Suppress errors on exif_read_data
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Brereton-Canham authored Dec 4, 2016
1 parent d3529c9 commit 541d21c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/controllers/ContentwrapperController.php
Original file line number Diff line number Diff line change
Expand Up @@ -758,7 +758,7 @@ public function postUpload($id)
// IOS Camera rotation shit
if ($file->getClientOriginalExtension() == "jpg" || $file->getClientOriginalExtension() == "jpeg") {

$exif = exif_read_data($full_path); //
$exif = @exif_read_data($full_path); //

// retarded iphone orientation fix
if ( ! empty($exif['Orientation'])) {
Expand Down Expand Up @@ -867,4 +867,4 @@ public function postUpload($id)
return response()->json($return);
}
}
}
}

0 comments on commit 541d21c

Please sign in to comment.