Re: Including scalable icons to improve size coverage

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Martin Sourada wrote:
 > Hi, all

I just updated the echo icon set and discovered that not all svgs have square
dimensions, so they look a little stretched. I noticed it for example for the
cut, copy and paste icons. Is there any way how to check (other than opening all
the icons, one by one, and manualy checking which one are problematic) which
ones exactly suffer this problem, so that we could easier fix it?

Thanks,
Martin


Run as:
./find_nonsq_svg.pl *.svg
#!/usr/bin/perl

use XML::Twig;

foreach (@ARGV) {
  my $filename = $_;
  my $twig=XML::Twig->new(twig_handlers => {
        'svg' => sub {
            my $height = $_->{'att'}->{'height'};
            my $width = $_->{'att'}->{'width'};
            if ( $height ne $width) {
                print "$filename $width x $height\n";
                }
            }
        } );    # create the twig
  $twig->parsefile($_);        # build it
}
_______________________________________________
Fedora-art-list mailing list
Fedora-art-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-art-list

[Index of Archives]     [Fedora Music]     [Fedora Development]     [Linux Kernel]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Directory]     [PAM]     [Big List of Linux Books]     [Gimp]     [Yosemite News]

  Powered by Linux