diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-10-15 13:23:40 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-10-15 13:23:40 -0700 |
commit | d9753989bf63047051bc0fbfc6e2b438040acf85 (patch) | |
tree | df10bc7dff855b7e0c7e2f6705c9217c228e5493 /mod/photos.php | |
parent | 391b98f72c9d409c5d8ce559edf5dc1e5c34e783 (diff) | |
download | volse-hubzilla-d9753989bf63047051bc0fbfc6e2b438040acf85.tar.gz volse-hubzilla-d9753989bf63047051bc0fbfc6e2b438040acf85.tar.bz2 volse-hubzilla-d9753989bf63047051bc0fbfc6e2b438040acf85.zip |
issue #89 - rotating photos does not work
Diffstat (limited to 'mod/photos.php')
-rw-r--r-- | mod/photos.php | 3 |
1 files changed, 2 insertions, 1 deletions
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); |