rotate uploaded images if an EXIF rotation is present

This commit is contained in:
Zach Prezkuta 2012-06-18 20:53:46 -06:00
commit 42fa47e8f7
2 changed files with 62 additions and 1 deletions

View file

@ -718,6 +718,7 @@ function photos_post(&$a) {
killme();
}
$ph->orient($src);
@unlink($src);
$width = $ph->getWidth();