From: Zach Prezkuta Date: Sun, 8 Jul 2012 17:17:50 +0000 (-0600) Subject: better check for image EXIF support X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fb4295f07f6c4a98147936b4442d69d88989d720;p=friendica.git better check for image EXIF support --- 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);