Skip to content

Commit

Permalink
check that exif is installed instead of GD to use it
Browse files Browse the repository at this point in the history
  • Loading branch information
tcitworld committed Mar 16, 2016
1 parent 3d0d543 commit bf8abf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PHPePub/Helpers/ImageHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public static function getImage($book, $imageSource) {
$width = ImageSX($imageFile);
$height = ImageSY($imageFile);
}
if (self::isGdInstalled()) {
if (self::isExifInstalled()) {
@$type = exif_imagetype($imageSource);
$mime = image_type_to_mime_type($type);
}
Expand Down

0 comments on commit bf8abf5

Please sign in to comment.