aboutsummaryrefslogtreecommitdiffstats
path: root/include/photos.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-11-19 16:56:59 -0800
committerzotlabs <mike@macgirvin.com>2017-11-19 16:56:59 -0800
commit16f584608f8147a58bfe295ff3295aae0f85b38a (patch)
tree6ccfd91b8114428cea33b8d5b3293f3f806578db /include/photos.php
parent60fcb5f4f2729e6e164abcb515540cc752881b9b (diff)
downloadvolse-hubzilla-16f584608f8147a58bfe295ff3295aae0f85b38a.tar.gz
volse-hubzilla-16f584608f8147a58bfe295ff3295aae0f85b38a.tar.bz2
volse-hubzilla-16f584608f8147a58bfe295ff3295aae0f85b38a.zip
text thumbnails in cloud tile mode
Diffstat (limited to 'include/photos.php')
-rw-r--r--include/photos.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/photos.php b/include/photos.php
index 41a1d18cb..b1391f284 100644
--- a/include/photos.php
+++ b/include/photos.php
@@ -203,7 +203,13 @@ function photo_upload($channel, $observer, $args) {
return $ret;
}
- $exif = $ph->orient(($args['os_syspath']) ? $args['os_syspath'] : $src);
+ // obtain exif data from the source file if present
+
+ $exif = $ph->exif(($args['os_syspath']) ? $args['os_syspath'] : $src);
+
+ if($exif) {
+ $ph->orient($exif);
+ }
@unlink($src);