better check for image EXIF support
This commit is contained in:
parent
9fbe921051
commit
fb4295f07f
1 changed files with 1 additions and 1 deletions
|
@ -143,7 +143,7 @@ class Photo {
|
||||||
public function orient($filename) {
|
public function orient($filename) {
|
||||||
// based off comment on http://php.net/manual/en/function.imagerotate.php
|
// 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;
|
return;
|
||||||
|
|
||||||
$exif = exif_read_data($filename);
|
$exif = exif_read_data($filename);
|
||||||
|
|
Loading…
Reference in a new issue