diff options
author | zotlabs <mike@macgirvin.com> | 2017-11-19 16:56:59 -0800 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-11-19 16:56:59 -0800 |
commit | 16f584608f8147a58bfe295ff3295aae0f85b38a (patch) | |
tree | 6ccfd91b8114428cea33b8d5b3293f3f806578db /include/photos.php | |
parent | 60fcb5f4f2729e6e164abcb515540cc752881b9b (diff) | |
download | volse-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.php | 8 |
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); |