Aleksander Machniak
2013-08-03 7015dd99f90fb10f899d698f9601708f9a5f728b
Added -stip option to convert command line (#1489270)
1 files modified
4 ■■■■ changed files
program/lib/Roundcube/rcube_image.php 4 ●●●● patch | view | raw | blame | history
program/lib/Roundcube/rcube_image.php
@@ -124,7 +124,7 @@
            $p['-opts'] = array('-resize' => $p['size'].'>');
            if (in_array($type, explode(',', $p['types']))) { // Valid type?
                $result = rcube::exec($convert . ' 2>&1 -flatten -auto-orient -colorspace sRGB -quality {quality} {-opts} {intype}:{in} {type}:{out}', $p);
                $result = rcube::exec($convert . ' 2>&1 -flatten -auto-orient -colorspace sRGB -strip -quality {quality} {-opts} {intype}:{in} {type}:{out}', $p);
            }
            if ($result === '') {
@@ -230,7 +230,7 @@
            $p['out']  = $filename;
            $p['type'] = self::$extensions[$type];
            $result = rcube::exec($convert . ' 2>&1 -colorspace sRGB -quality 75 {in} {type}:{out}', $p);
            $result = rcube::exec($convert . ' 2>&1 -colorspace sRGB -strip -quality 75 {in} {type}:{out}', $p);
            if ($result === '') {
                @chmod($filename, 0600);