aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-07 04:18:13 -0700
committerfriendica <info@friendica.com>2012-07-07 04:18:13 -0700
commit7788a932587155e7df3ca922087b517eb2e4791b (patch)
treed442541efa86d3d665b042c36415d3e7944e39cb /mod/photos.php
parenta122fecf50d06856a2ada8b564f711fb52c327f0 (diff)
parent1b3d84422e27b5d1f728a4e4fedc8231e6e81453 (diff)
downloadvolse-hubzilla-7788a932587155e7df3ca922087b517eb2e4791b.tar.gz
volse-hubzilla-7788a932587155e7df3ca922087b517eb2e4791b.tar.bz2
volse-hubzilla-7788a932587155e7df3ca922087b517eb2e4791b.zip
Merge pull request #380 from copyninja/master
orient function should not be called on png image types
Diffstat (limited to 'mod/photos.php')
-rw-r--r--mod/photos.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/photos.php b/mod/photos.php
index 624f0bdca..42cad42f9 100644
--- a/mod/photos.php
+++ b/mod/photos.php
@@ -740,7 +740,8 @@ function photos_post(&$a) {
killme();
}
- $ph->orient($src);
+ if($ph->getType() != 'image/png')
+ $ph->orient($src);
@unlink($src);
$max_length = get_config('system','max_image_length');