[Lazarus] SVG format for icons and other graphics

Vojtěch Čihák vojtech.cihak at atlas.cz
Thu May 7 15:45:47 CEST 2015


Hi,
Inkscape is excellent open source application for designing vector graphics.
There is also console tool for converting svg->png: rsvg-convert
 
I use this script which converts all svg files in directory to png images with various sizes
and places them to directories:
 
#!/bin/bash
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 64 -h 64 -o ../default64normal/`echo $i | sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 48 -h 48 -o ../default48normal/`echo $i | sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 32 -h 32 -o ../default32normal/`echo $i | sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 24 -h 24 -o ../default24normal/`echo $i | sed -e 's/svg$/png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 16 -h 16 -o ../default16normal/`echo $i | sed -e 's/svg$/png/'`; done     
 
V.
______________________________________________________________
> Od: Juha Manninen <juha.manninen62 at gmail.com>
> Komu: Lazarus mailing list <lazarus at lists.lazarus.freepascal.org>
> Datum: 07.05.2015 07:57
> Předmět: [Lazarus] SVG format for icons and other graphics
>
Moved from the splash screen thread.

On Wed, May 6, 2015 at 11:04 AM, Sandro Cumerlato
<sandro.cumerlato at gmail.com> wrote:
> I'd like to recommend SVG format for new graphics.

This is about a scalable vector graphics format. The idea is not to
change the graphics design but to make everything scalable.

Sandro mentioned this idea to me privately, too, after having very
small icons in a Windows 8.1 machine. I think it is a good idea but
technically challenging. It involves choosing a graphics library etc.

Sandro, could you please take lead in this issue. You are a talented
graphics programmer after all. Make a plan and discuss it here.
None of the current core developers is working on such issues, thus
(difficult) questions may not be answered.
When learning code, questions come up and usually they are answered,
but after certain point nobody has answers. You just have to figure
things out by yourself.

Juha

--
_______________________________________________
Lazarus mailing list
Lazarus at lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus <http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20150507/37ae8143/attachment-0003.html>


More information about the Lazarus mailing list