Skip to content

Commit e1bd700

Browse files
committed
remove exif data after rotation, otherwise it could get rotated agan by the browser
1 parent 82e83ec commit e1bd700

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/midcom/helper/imagefilter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,7 @@ public function exifrotate()
337337
];
338338

339339
$tmpfile = $this->_get_tempfile();
340-
$cmd = midcom::get()->config->get('utility_jpegtran') . " -outfile {$tmpfile} -copy all";
340+
$cmd = midcom::get()->config->get('utility_jpegtran') . " -outfile {$tmpfile} -copy icc";
341341
} else {
342342
/* Mogrify */
343343
debug_add("jpegtran not found, falling back to mogrify.");

0 commit comments

Comments
 (0)