Using Gimp to batch convert images to another format in Windows

Solution 1:

Better than Gimp or Irfanview is ImageMagick.

For instance, try:

mogrify -format jpg *.png

Solution 2:

There is also a wizard based batch processor available:

DBP (David's Batch Processor) for GIMP

enter image description here

Solution 3:

Put the following in ~/.gimp-<YOURVERSION>/scripts/myconvert.scm:

(define (myconvert in_filename out_filename)
    (let* (
            (image (car (gimp-file-load RUN-NONINTERACTIVE in_filename in_filename)))
            (drawable (car (gimp-image-get-active-layer image)))
        )
        (gimp-file-save RUN-NONINTERACTIVE image drawable out_filename out_filename)
        (gimp-image-delete image)
    )
)

Then, you can run something like this to convert all the files in the current directory to JPGs:

for A in * ; do gimp -i -b "(myconvert \"$A\" \"$A.jpg\")" -b '(gimp-quit 0)' ; done

Solution 4:

Is using Irfanview not an option? I keep both GIMP and Irfanview installed for precisely this reason...GIMP for image editing and Irfanview for batch conversion.