diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/PHPImageWorkshop/ImageWorkshop.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/PHPImageWorkshop/ImageWorkshop.php b/src/PHPImageWorkshop/ImageWorkshop.php index f3a4650..bdedb20 100644 --- a/src/PHPImageWorkshop/ImageWorkshop.php +++ b/src/PHPImageWorkshop/ImageWorkshop.php @@ -73,8 +73,9 @@ class ImageWorkshop switch ($mimeContentType) {
case 'jpeg':
$image = imageCreateFromJPEG($path);
- if (false === ($exif = @read_exif_data($path))) {
- $exif = array();
+
+ if (function_exists('read_exif_data') && false !== ($data = @read_exif_data($path))) {
+ $exif = $data;
}
break;
|