# clearly mark an altered version. Fixes and enhancements cheerfully
# accepted.
#
-# This is version 1.2.
+# This is version 1.3.
#
# Anything that can fetch a URL defined on the command line
}
$url = $1;
+ # fetch the image
if ($url =~ /^http:/) {
$image = "imgsizer-tmp$$";
$status = system("$fetcher ${url} >${image}");
}
+ # Don't try to fix up percent sizes
+ if ($attribs =~ /[0-9]%/) {
+ return $attribs;
+ }
+
($name, $size) = split(' ', `identify ${image}`);
unlink("imgsizer-tmp$$");
if ($name =~ /:/) {