diff --git a/tools/buildicon b/tools/buildicon index f5d32c08b67..eae13dc3a9d 100755 --- a/tools/buildicon +++ b/tools/buildicon @@ -79,10 +79,12 @@ sub svg_element_start # Extract SVG vector images my $x = $attr{'x'}; my $y = $attr{'y'}; + my $width = $attr{'width'}; + my $height = $attr{'height'}; if(defined($x) and defined($x)) { if($x =~ /\d*/ and $y =~ /\d*/) { - shell $convert, $renderedSVGFileName, "-crop", "${size}x${size}+$x+$y", $pngFileName; + shell $convert, $renderedSVGFileName, "-crop", "${width}x${height}+$x+$y", $pngFileName; } }