X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2FPhoto.php;h=ba4241a7b819ad0c99e3d4ee08781efb1c7869f2;hb=fc27edb6d76765cd9b85d29a3c41f23f17c6ca41;hp=3af1691ee7250880479de51ec3573fb5e2839a05;hpb=dbceef04e88f9f7c3f40c1ce3b1366c300abb394;p=friendica.git diff --git a/include/Photo.php b/include/Photo.php index 3af1691ee7..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')) + if( (! function_exists('exif_read_data')) || ($this->getType() !== 'image/jpeg') ) return; $exif = exif_read_data($filename);