auto-orient uploaded wall photos and profile photos also

This commit is contained in:
Zach Prezkuta 2012-07-08 09:18:05 -06:00
commit 9fbe921051
4 changed files with 16 additions and 3 deletions

View 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/png') )
return;
$exif = exif_read_data($filename);