Use SVG icons instead of PNG

A. Walton awalton at
Sat Feb 9 22:30:32 UTC 2008

On Feb 9, 2008 1:53 PM, Mackenzie Morgan <macoafi at> wrote:
> On Feb 9, 2008 1:27 PM, Milan <nalimilan at> wrote:
> > To sum up, yes, having SVG icons for every app would be good, and no, it
> > does not hurt performance.
> >
> Depends on your system.  The calculations for SVG technically take more
> cycles to do than just drawing a raster does.  I'm guessing the 10 year old
> computer at my dad's house would be slower with SVG than with rasters, but
> P4 and newer wouldn't have any noticeable difference at all.  Maybe having a
> powerful GPU makes the point moot, but vectors do require more calculations
> than rasters do.

Shouldn't matter; even if the SVG took ten times longer to render than
the PNG did to decompress, for slower machines, you'd just dump the
PNG back to disk and read it in next time (until a different
resolution is needed, when you re-render from SVG). Also, most
toolkits already do very aggressive caching (GTK+ especially so, to
avoid hitting and drawing SVGs every time around).

With the push towards GPU acceleration (in cairo expecially), now's
the time to start shipping SVGs.


> --
> Mackenzie Morgan
> Linux User #432169
> ACM Member #3445683
> <-my blog of Ubuntu stuff
> apt-get moo
> --
> Ubuntu-devel-discuss mailing list
> Ubuntu-devel-discuss at
> Modify settings or unsubscribe at:

More information about the Ubuntu-devel-discuss mailing list