]> git.mxchange.org Git - friendica.git/blobdiff - include/Photo.php
network: Caching of images
[friendica.git] / include / Photo.php
index 3af1691ee7250880479de51ec3573fb5e2839a05..ba4241a7b819ad0c99e3d4ee08781efb1c7869f2 100644 (file)
@@ -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);