lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Tiny icon for desktop


From: Heikki Johannes Junes
Subject: Tiny icon for desktop
Date: Wed, 4 Sep 2002 00:48:39 +0300 (EET DST)

Just run the following script in your command prompt and you will see it.
Make imagesize 48 smaller in order to get other icon sizes.

gimp -d -i -b '(list
 (set! lilyName "/home/lilypond/Documentation/pictures/lelieblond.xpm")
 (set! imagesize 48)
 (set! lilyNewName "lilypond-48x48.png")

 (set! image (car (file-xpm-load 1 lilyName lilyName)))
 (set! layer (car (gimp-image-get-active-layer image)))

 (gimp-image-resize image 836 836 (/ (- 836 582) 2) 0)
 (gimp-layer-resize layer 836 836 (/ (- 836 582) 2) 0)

 (gimp-by-color-select layer (list 0 0 0) 15 2 0 0 0 0)
 (gimp-selection-grow image 10)
 (gimp-bucket-fill layer 0 0 100 0 0 100 700)

 (gimp-selection-grow image 15)
 (gimp-selection-invert image)
 (gimp-rect-select image 0 0 345 150 0 0 0)
 (gimp-rect-select image 540 0 100 40 0 0 0)
 (gimp-rect-select image 0 400 242 208 0 0 0)
 (gimp-rect-select image 550 770 100 100 0 0 0)
 (gimp-edit-cut layer)

 (gimp-image-scale image imagesize imagesize)
 (file-png-save 1 image layer lilyNewName lilyNewName 0 6 1 0 0 1 1)
)' '(gimp-quit 0)'

xview lilypond-48x48.png

--
      Heikki Junes






reply via email to

[Prev in Thread] Current Thread [Next in Thread]