Issue #166 - we test exif data below, no need for error output

This commit is contained in:
Mikael Nordfeldth 2016-03-21 02:56:47 +01:00
parent 78e23bd4ec
commit cd24f7d30a
1 changed files with 1 additions and 1 deletions

View File

@ -95,7 +95,7 @@ class ImageFile
if ($this->type == IMAGETYPE_JPEG && function_exists('exif_read_data')) {
// Orientation value to rotate thumbnails properly
$exif = exif_read_data($this->filepath);
$exif = @exif_read_data($this->filepath);
if (is_array($exif) && isset($exif['Orientation'])) {
switch ((int)$exif['Orientation']) {
case 1: // top is top