strip metadata in a single imagemagick command

This commit is contained in:
Shish 2010-01-21 16:11:31 +00:00
parent ccaeca19eb
commit a086b9b7fc

View File

@ -74,7 +74,8 @@ class PixelFileHandler extends DataHandlerExtension {
// convert to bitmap & back to strip metadata -- otherwise we
// can end up with 3KB of jpg data and 200KB of misc extra...
// "-limit memory $mem" broken?
exec("convert {$inname}[0] -geometry {$w}x{$h} bmp:- | convert bmp:- -quality {$q} jpg:$outname");
exec("convert {$inname}[0] -geometry {$w}x{$h} -strip -quality {$q} jpg:$outname");
#exec("convert {$inname}[0] -geometry {$w}x{$h} bmp:- | convert bmp:- -quality {$q} jpg:$outname");
return true;
}