diff options
Diffstat (limited to 'img-fu')
-rw-r--r-- | img-fu | 21 |
1 files changed, 21 insertions, 0 deletions
@@ -0,0 +1,21 @@ +(define (img-recode + srcfile + destfile + fmt + ckey) + +(let* + ( + (image (car (file-img-load RUN-NONINTERACTIVE srcfile srcfile))) + (drawable (car (gimp-image-get-active-layer image))) + ) + + (file-img-save RUN-NONINTERACTIVE image drawable destfile destfile fmt ckey) +) +) + +(img-recode "samples/rgb.img" "samples/recoded-rgb565.img" "RGB565" "no") +(img-recode "samples/rgb.img" "samples/recoded-rgba.img" "RGBA" "0x0F0") + +(gimp-quit 0) + |