]> git.mxchange.org Git - friendica.git/commitdiff
better check for image EXIF support
authorZach Prezkuta <fermion@gmx.com>
Sun, 8 Jul 2012 17:17:50 +0000 (11:17 -0600)
committerZach Prezkuta <fermion@gmx.com>
Sun, 8 Jul 2012 17:17:50 +0000 (11:17 -0600)
include/Photo.php

index f07019e714dbbf4c2fb45c3390258133601c200f..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')) || ($this->getType() === 'image/png') )
+               if( (! function_exists('exif_read_data')) || ($this->getType() !== 'image/jpeg') )
                        return;
 
                $exif = exif_read_data($filename);