From: Don Armstrong Date: Fri, 29 Mar 2013 00:10:53 +0000 (-0700) Subject: use resize instead of geometry X-Git-Tag: release/2.6.0~293 X-Git-Url: https://git.donarmstrong.com/?p=debbugs.git;a=commitdiff_plain;h=2d8fff61383d49ae0829d338513070bcb3d0610e use resize instead of geometry strip out comments and text from images --- diff --git a/cgi/libravatar.cgi b/cgi/libravatar.cgi index 7ba5333..83a896b 100644 --- a/cgi/libravatar.cgi +++ b/cgi/libravatar.cgi @@ -114,7 +114,8 @@ sub retreive_libravatar{ print {$temp_fh} $r->content() or die "Unable to print to temp file"; close ($temp_fh); - system('convert','-geometry','80x80', + system('convert','-resize','80x80', + '-strip', $temp_fn, $cache_location.'.'.$dest_type) == 0 or die "convert file failed";