From a086b9b7fc692b80afa9c9194b1223a5491c5c49 Mon Sep 17 00:00:00 2001 From: Shish Date: Thu, 21 Jan 2010 16:11:31 +0000 Subject: [PATCH] strip metadata in a single imagemagick command --- ext/handle_pixel/main.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ext/handle_pixel/main.php b/ext/handle_pixel/main.php index 97444060..8c20274a 100644 --- a/ext/handle_pixel/main.php +++ b/ext/handle_pixel/main.php @@ -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; }