I want to create a Windows icon file that contains an image in
several different resolutions. To do this, I use the following
script:


---------------------- cut --------------------------------------
gimp -i -b - <<EOF
(
let* ((image (car (gimp-file-load 1 "test.png" "test.png")))
      (drawable (car (gimp-image-get-active-layer image))))

(set! layer (car (gimp-layer-new-from-drawable drawable image)))
(gimp-image-add-layer image layer -1)
(gimp-layer-scale layer 32 32 FALSE)

(set! layer (car (gimp-layer-new-from-drawable drawable image)))
(gimp-image-add-layer image layer -1)
(gimp-layer-scale layer 24 24 FALSE)

(set! layer (car (gimp-layer-new-from-drawable drawable image)))
(gimp-image-add-layer image layer -1)
(gimp-layer-scale layer 16 16 FALSE)

(gimp-layer-scale drawable 48 48 FALSE)

(file-ico-save 1 image drawable "test.ico" "test.ico")

(gimp-quit 0)
)
EOF
---------------------- cut --------------------------------------


Despite the '1' in the call to 'file-ico-save', GIMP shows me the
"Icon details" dialog before saving the icon file. Since I want
this to run completely in batch mode, what can I do to avoid
this dialog from being shown?

Klaus Schmidinger

_______________________________________________
Gimp-user mailing list
Gimp-user@lists.XCF.Berkeley.EDU
https://lists.XCF.Berkeley.EDU/mailman/listinfo/gimp-user

Reply via email to