aboutsummaryrefslogtreecommitdiffstats
path: root/mod/photos.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-07-07 21:55:15 -0700
committerfriendica <info@friendica.com>2012-07-07 21:55:15 -0700
commit63f10f6c6bb1ce794643b7511ab50cd810b79595 (patch)
tree3e773f767eff7c37e80e83cbfc8de02d330a58b7 /mod/photos.php
parente94f7ed23d18e811e31cb4656a55b97f328534b7 (diff)
parenta3640b4e9f8c457c8761ccedf7757ce6dfe733c2 (diff)
downloadvolse-hubzilla-63f10f6c6bb1ce794643b7511ab50cd810b79595.tar.gz
volse-hubzilla-63f10f6c6bb1ce794643b7511ab50cd810b79595.tar.bz2
volse-hubzilla-63f10f6c6bb1ce794643b7511ab50cd810b79595.zip
Merge https://github.com/friendica/friendica into pull
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');