Jump to content


Photo

Creating skin icons with ImageMagick


  • Please log in to reply
No replies to this topic

#1 mrvica

  • Senior Member
  • 1,227 posts

+82
Good

Posted 3 December 2017 - 15:52

could be done easily in one go, see the topic

https://forums.openp...ndpost&p=802106

the syntax (Win)

convert -background #5DFC0A -stroke black -strokewidth 1 -bordercolor blue -border 2 -depth 8 -size 28x20 -gravity center -kerning 3 label:VI via_ecm_tmp.png
convert -background #ffcc00 -stroke black -strokewidth 1 -bordercolor blue -border 2 -depth 8 -size 28x20 -gravity center -kerning 3 label:VI via_emm_tmp.png
convert -background #3F4C9C -stroke black -strokewidth 1 -bordercolor blue -border 2 -depth 8 -size 28x20 -gravity center -kerning 3 label:VI via_no_tmp.png

for Linux

convert -background '#5DFC0A' -stroke black -strokewidth 1 -bordercolor blue -border 2 -depth 8 -size 28x20 -gravity center -kerning 3 label:VI via_ecm_tmp.png
convert -background '#ffcc00' -stroke black -strokewidth 1 -bordercolor blue -border 2 -depth 8 -size 28x20 -gravity center -kerning 3 label:VI via_emm_tmp.png
convert -background '#3F4C9C' -stroke black -strokewidth 1 -bordercolor blue -border 2 -depth 8 -size 28x20 -gravity center -kerning 3 label:VI via_no_tmp.png

from @TangoCash (dbox2world.net board) I became a tip how to mage icons with rounded corners additionally (a small shell script), i.e. for an existing fta.png just type in

./add_corner.sh fta

for Windows I made a .bat that does all in one step (creating and rounding), the Win version of ImageMagick you can get here,

ftp://ftp.imagemagick.org/pub/ImageMagick/binaries

take portable version (6.9.9 , with 7.0.7 I couldn´t make rounded corners), it does not need any installing, just unpack it and execute it from directory where convert.exe resides, if you make a subdirectory i.e. icons then execute it from there this way ..\convert.exe

the icons are named to be used with this converter

https://github.com/M...lamourAccess.py

for other skins you´ll have to rename them

If you have an idea how to make even better looking icons, this is a good place to post it

Attached Files




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users