strip metadata in a single imagemagick command
This commit is contained in:
parent
ccaeca19eb
commit
a086b9b7fc
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user