summaryrefslogtreecommitdiff
path: root/inc/image.php
diff options
context:
space:
mode:
authorMichael Foster <savetheinternet@tinyboard.org>2013-08-01 21:28:16 -0400
committerMichael Foster <savetheinternet@tinyboard.org>2013-08-01 21:28:16 -0400
commit40ab2e0c1728fab613bc16a19ab8fcb3fa78c1d4 (patch)
treeffe873806fdfbbf540f58f9cc707bdcb192010de /inc/image.php
parent6c4103737797f1573070c7b00af3dfcbb5b96367 (diff)
Don't redraw image again after correcting image orientation; Correct image orientation with convert+gifsicle too
Diffstat (limited to 'inc/image.php')
-rw-r--r--inc/image.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/image.php b/inc/image.php
index 5910cb85..51db2f83 100644
--- a/inc/image.php
+++ b/inc/image.php
@@ -251,9 +251,9 @@ class ImageConvert extends ImageBase {
if (!$this->temp) {
if ($config['strip_exif']) {
- shell_exec('convert ' . escapeshellarg($this->src) . ' -strip ' . escapeshellarg($src));
+ shell_exec('convert ' . escapeshellarg($this->src) . ' -auto-orient -strip ' . escapeshellarg($src));
} else {
- shell_exec('convert ' . escapeshellarg($this->src) . ' ' . escapeshellarg($src));
+ shell_exec('convert ' . escapeshellarg($this->src) . ' -auto-orient ' . escapeshellarg($src));
}
} else {
rename($this->temp, $src);