I'm quite new to gimp. Assuming I have N images I was wondering if it is possible do the following:

For i = 1...N
  For each export options j = 1 .. N

Basically what I'm doing manually is to load an image and export it using the following dialog:

enter image description here

where (for example) I set different compressions level at each export, or changing 8bpc RGBA to (for example) 16bpc RGB etc.

Also I'd like to repeat the same iteration but maybe for jpeg for example, with other options etc.

Is there a way to script the whole process over a set of say 100 images?

  • Yes... if I understand that what you want to do is export several instances of the same image with different options and repeat this over a whole set of images. The script remains to be written. But maybe you want this – xenoid Feb 4 '19 at 12:07
  • What's that in a nutshell? – user8469759 Feb 4 '19 at 12:30
  • Also what do I need to do to write the script? I mean can the necessaries functionalities I would need to use from gimp be available to be used from a command line? (So maybe I can write a shell script that does everything I need). – user8469759 Feb 4 '19 at 12:44
  • See here for an example of batch processing in Gimp. But unless you are testing Gimp image encoding, it would be easier with ImageMagicks's convert in a shell script. – xenoid Feb 4 '19 at 16:50
  • I'm using ImageMagick right now (amazing), but for sake of knowledge I'll leave the question open, – user8469759 Feb 4 '19 at 17:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.