From d9753989bf63047051bc0fbfc6e2b438040acf85 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Thu, 15 Oct 2015 13:23:40 -0700 Subject: issue #89 - rotating photos does not work --- mod/photos.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/photos.php b/mod/photos.php index 6451304ff..4b392a288 100644 --- a/mod/photos.php +++ b/mod/photos.php @@ -236,7 +236,8 @@ function photos_post(&$a) { intval($page_owner_uid) ); if(count($r)) { - $ph = photo_factory(dbunescbin($r[0]['data']), $r[0]['type']); + $d = (($r[0]['os_storage']) ? @file_get_contents($r[0]['data']) : dbunescbin($r[0]['data'])); + $ph = photo_factory($d, $r[0]['type']); if($ph->is_valid()) { $rotate_deg = ( (intval($_POST['rotate']) == 1) ? 270 : 90 ); $ph->rotate($rotate_deg); -- cgit v1.2.3