forked from leftypol/leftypol
Don't redraw image again after correcting image orientation; Correct image orientation with convert+gifsicle too
This commit is contained in:
parent
6c41037377
commit
40ab2e0c17
2 changed files with 8 additions and 6 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue