aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-06-18 20:10:11 -0700
committerfriendica <info@friendica.com>2012-06-18 20:10:11 -0700
commit633726e4a90c1bb931967206117e59ca6fe20bb2 (patch)
tree6568c11b82c69868b0890092c8df68a004d41b0f /mod/photos.php
parent9374e1966fcb42ca45e6af788852be0aafd4e34e (diff)
parent7cd516e34f95945b7f15f42cfe7318dfd907c8d8 (diff)
downloadvolse-hubzilla-633726e4a90c1bb931967206117e59ca6fe20bb2.tar.gz
volse-hubzilla-633726e4a90c1bb931967206117e59ca6fe20bb2.tar.bz2
volse-hubzilla-633726e4a90c1bb931967206117e59ca6fe20bb2.zip
Merge pull request #341 from fermionic/auto-orient-uploaded-images
rotate uploaded images if an EXIF rotation is present
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/mod/photos.php b/mod/photos.php
index a6552994e..4fa8aca08 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -718,6 +718,7 @@ function photos_post(&$a) {
killme();
}
+ $ph->orient($src);
@unlink($src);
$width = $ph->getWidth();