]> git.donarmstrong.com Git - debbugs.git/commitdiff
use resize instead of geometry
authorDon Armstrong <don@donarmstrong.com>
Fri, 29 Mar 2013 00:10:53 +0000 (17:10 -0700)
committerDon Armstrong <don@donarmstrong.com>
Fri, 29 Mar 2013 00:10:53 +0000 (17:10 -0700)
strip out comments and text from images

cgi/libravatar.cgi

index 7ba5333670705e520a491ed2000a7de2b78da689..83a896b7820fd9e2dbe64ac4c08e658fa18c390f 100644 (file)
@@ -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";