From 2d8fff61383d49ae0829d338513070bcb3d0610e Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Thu, 28 Mar 2013 17:10:53 -0700 Subject: [PATCH] use resize instead of geometry strip out comments and text from images --- cgi/libravatar.cgi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"; -- 2.39.2