Iconify Plug-in for the GIMP

In an attempt to speed things up for an icon request I went looking for a script to convert my images directly to icons from within GIMP and luckily found one.

Click here for the original script by Giuseppe Bilotta.

Only standard window sizes. You'll need to modify the script for more sizes & comment out a few lines to make only 32 bit Alpha Icons.

The code to change. You do not delete anything

Original:

; We don't do the two biggest sizes, for now
; TODO make this a parameter
(mapcar
resize-to-dim
'(16 32 48)
)

Change to:

; We don't do the two biggest sizes, for now
; TODO make this a parameter
(mapcar
resize-to-dim
'(16 32 48 64 72 96 128)
)

Comment Out four lines as detailed below.

 ; The 256 color image, using an optimized palette
(set! eigth-bit (palettize-image 0 256))
; The 16 color image, using the 'official' 'web' optimized palette
; It must be done with that palette because otherwise we can't
; save to 16-color in Windows .ico format
(set! four-bit (palettize-image 2 16))

; Now we put the new layers back in the original image
(plop-image eigth-bit)
(plop-image four-bit)

Should look like this:

 ; The 256 color image, using an optimized palette
;(set! eigth-bit (palettize-image 0 256))
; The 16 color image, using the 'official' 'web' optimized palette
; It must be done with that palette because otherwise we can't
; save to 16-color in Windows .ico format
;(set! four-bit (palettize-image 2 16))

; Now we put the new layers back in the original image
;(plop-image eigth-bit)
;(plop-image four-bit)

#438124