From 16f584608f8147a58bfe295ff3295aae0f85b38a Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 19 Nov 2017 16:56:59 -0800 Subject: text thumbnails in cloud tile mode --- include/photos.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/photos.php') 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); -- cgit v1.2.3