SVG icons

Simon Hausmann hausmann at kde.org
Mon Apr 8 20:22:23 BST 2002


On Mon, Apr 08, 2002 at 08:15:50PM +0200, Nikolas Zimmermann wrote:
> > > > > > > i wonder if i may commit the SVG iconloader stuff.
> > > > > > > The ksvgtopng utility is also included.
> > > > > >
> > > > > > Do you mean support for 'live-rendering' of SVG icons in the
> > > > > > iconloader or a way of rendering an SVG icontheme to a standard png
> > > > > > icontheme at build time? Or a combination of it (like, leaving the
> > > > > > iconloader as-is but having free scaling in KonqIconView for svg
> > > > > > icon themes) ?
> > > > >
> > > > > Right, a combination.
> > > > > On compiletime ksvgtopng, would convert the kde svg icons
> > > > > to png's for all standard sizes.
> > > > > And for everything else, live rendering.
> > > >
> > > > So all that libart stuff in kdecore isn't even used in the normal case
> > > > ??
> > >
> > > It actually is, just not "visible" for the user. But during the
> > > compiletime the icons (in future, for example all kde icons are svg, to
> > > make it easier for artists) are converted from svg to png. So we'd need
> > > that in kdelibs, somehow.
> > >
> > > You understand me?
> >
> > But if the intermediate goal (for say the 3.x range) is to have .svg
> > as source format and to get an svg icon set compiled (rendered) into
> > a .png based icon set at build time, then why is there a need to
> > have libart and all that stuff in kdecore?
> "libart and all that stuff"
> 
> libart could go into ie. kdesupport, sth like that.
> but "all that stuff", i think you mean ksvgicon*.cpp, needs to stay there
> because kdelibs/pics would need a conversation to png then?
> 
> Or what's your plan ? Moving it to kdelibs/svgicons ?

I was thinking about something like Waldo did with kimage_concat
(see kdelibs/pics) . In fact a kdelibs/pics/tools might just be a
nice thing to have, shipping tools useful for work with icons in
KDE. A tool to concatenate .png's and a svg2png tool. And there
could even be am_edit support, taking care of automagically calling
svg2png :)


Simon




More information about the kde-core-devel mailing list