[Lazarus] Tool to make icons ?

Vojtěch Čihák vojtech.cihak at atlas.cz
Thu May 21 18:18:24 CEST 2020


I also use Inkscape and rsvg-convert
 
I have a script for converting all *.svg icons to multiple sizes:
 
#!/bin/bash
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 64 -h 64 -a -o ../png_all/`echo $i | sed -e 's/.svg$/_64.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 56 -h 56 -a -o ../png_all/`echo $i | sed -e 's/.svg$/_56.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 48 -h 48 -a -o ../png_all/`echo $i | sed -e 's/.svg$/_48.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 40 -h 40 -a -o ../png_all/`echo $i | sed -e 's/.svg$/_40.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 32 -h 32 -a -o ../png_all/`echo $i | sed -e 's/.svg$/_32.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 28 -h 28 -a -o ../png_all/`echo $i | sed -e 's/.svg$/_28.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 24 -h 24 -a -o ../png_all/`echo $i | sed -e 's/.svg$/_24.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 20 -h 20 -a -o ../png_all/`echo $i | sed -e 's/.svg$/_20.png/'`; done
 
for i in *.[Ss][Vv][Gg]; do rsvg-convert $i -w 16 -h 16 -a -o ../png_all/`echo $i | sed -e 's/svg$/png/'`; done          
 
 
Yes, non-integer scaling may be blury sometimes but nothing horrible.
 
V.
 
______________________________________________________________
> Od: "Michael Van Canneyt via lazarus" <lazarus at lists.lazarus-ide.org>
> Komu: "Lazarus mailing list" <lazarus at lists.lazarus-ide.org>
> Datum: 21.05.2020 16:14
> Předmět: [Lazarus] Tool to make icons ?
>

 Hi,
 
 What is the tool used to make icons for standard Lazarus components ?
 Every time I need to make an icon for a component, 
 I find myself in the situation that I start looking for a tool on internet.
 
 Should not lazarus come out of the box with a basic tool that allows you to
 create component icons with the correct sizes ?
 
 Michael.
 -- 
 _______________________________________________
 lazarus mailing list
 lazarus at lists.lazarus-ide.org
 https://lists.lazarus-ide.org/listinfo/lazarus <https://lists.lazarus-ide.org/listinfo/lazarus>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200521/ae389835/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cut.png
Type: image/png
Size: 635 bytes
Desc: cut.png
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200521/ae389835/attachment-0009.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cut_20.png
Type: image/png
Size: 822 bytes
Desc: cut_20.png
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200521/ae389835/attachment-0010.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cut_24.png
Type: image/png
Size: 1068 bytes
Desc: cut_24.png
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200521/ae389835/attachment-0011.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cut_28.png
Type: image/png
Size: 1324 bytes
Desc: cut_28.png
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200521/ae389835/attachment-0012.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cut_32.png
Type: image/png
Size: 1631 bytes
Desc: cut_32.png
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200521/ae389835/attachment-0013.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cut_40.png
Type: image/png
Size: 2193 bytes
Desc: cut_40.png
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200521/ae389835/attachment-0014.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cut_48.png
Type: image/png
Size: 2827 bytes
Desc: cut_48.png
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200521/ae389835/attachment-0015.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cut_56.png
Type: image/png
Size: 3422 bytes
Desc: cut_56.png
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200521/ae389835/attachment-0016.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cut_64.png
Type: image/png
Size: 3969 bytes
Desc: cut_64.png
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200521/ae389835/attachment-0017.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cut.svg
Type: image/svg+xml
Size: 8736 bytes
Desc: cut.svg
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20200521/ae389835/attachment-0001.svg>


More information about the lazarus mailing list