aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorZach Prezkuta <fermion@gmx.com>2012-06-18 20:53:46 -0600
committerZach Prezkuta <fermion@gmx.com>2012-06-18 21:02:11 -0600
commit42fa47e8f780e50392ca2b2289f58d2f6b840c86 (patch)
tree9ecb8c443a835152869cd2de85ec8d067ee8a807 /mod/photos.php
parent341a5a26724155a4866681a741e33552be41f6ec (diff)
downloadvolse-hubzilla-42fa47e8f780e50392ca2b2289f58d2f6b840c86.tar.gz
volse-hubzilla-42fa47e8f780e50392ca2b2289f58d2f6b840c86.tar.bz2
volse-hubzilla-42fa47e8f780e50392ca2b2289f58d2f6b840c86.zip
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();