From fb4295f07f6c4a98147936b4442d69d88989d720 Mon Sep 17 00:00:00 2001 From: Zach Prezkuta Date: Sun, 8 Jul 2012 11:17:50 -0600 Subject: [PATCH] better check for image EXIF support --- include/Photo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Photo.php b/include/Photo.php index f07019e714..ba4241a7b8 100644 --- a/include/Photo.php +++ b/include/Photo.php @@ -143,7 +143,7 @@ class Photo { public function orient($filename) { // based off comment on http://php.net/manual/en/function.imagerotate.php - if( (! function_exists('exif_read_data')) || ($this->getType() === 'image/png') ) + if( (! function_exists('exif_read_data')) || ($this->getType() !== 'image/jpeg') ) return; $exif = exif_read_data($filename);