Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2015-05

SVG format for icons and other graphics

4 messages · 4 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Juha Manninen

Moved from the splash screen thread.

Sandro Cumerlato 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

Reply by email

Graeme Geldenhuys
to Juha Manninen
Juha Manninen wrote
I think it is a good idea but technically challenging. It involves choosing a graphics library etc.

Lazarus includes AggPas which is very good at reading and rendering SVG images. AggPas doesn't required any 3rd party libraries.

Regards,
- Graeme -

fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/

Reply by email

Vojtěch Čihák
to Juha Manninen: Moved from the splash screen thread. On Wed, May 6, 2015 at 11:04 AM, Sandro Cumerlato…

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.

Reply by email

Marc Weustink
to Graeme Geldenhuys: Lazarus includes AggPas which is very good at reading and rendering SVG images. AggPas…
Graeme Geldenhuys wrote 6 lines
On 2015-05-07 06:55, Juha Manninen wrote: > I think it is a good idea but > technically challenging. It involves choosing a graphics library etc. Lazarus includes AggPas which is very good at reading and rendering SVG images. AggPas doesn't required any 3rd party libraries.

The last time I checked aggpas for SVG support I came to the conclusion that the SVG parser was very basic/primitive and decided to implement my own parser. Drawing the svg parts is however not a problem.

Marc

Reply by email