summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/PHPImageWorkshop/ImageWorkshop.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/PHPImageWorkshop/ImageWorkshop.php b/src/PHPImageWorkshop/ImageWorkshop.php
index a1f5a94..88330f7 100644
--- a/src/PHPImageWorkshop/ImageWorkshop.php
+++ b/src/PHPImageWorkshop/ImageWorkshop.php
@@ -69,10 +69,12 @@ class ImageWorkshop
}
$mimeContentType = $mimeContentType[1];
+ $exif = array();
switch ($mimeContentType) {
case 'jpeg':
$image = imageCreateFromJPEG($path);
+ $exif = read_exif_data($path);
break;
case 'gif':
@@ -88,7 +90,6 @@ class ImageWorkshop
break;
}
- $exif = read_exif_data($path);
$layer = new ImageWorkshopLayer($image, $exif);
if ($fixOrientation) {