Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

As implied by the title, does anybody know how to use the gimp-console-[version].exe program to batch convert images between formats (with default settings) in Windows ?

share|improve this question

6 Answers 6

up vote 29 down vote accepted

Better than Gimp or Irfanview is ImageMagick.

For instance, try:

mogrify -format jpg *.png
share|improve this answer
1  
+1 concur, why carry all the baggage of gimp, when a command line tool specific for the job exists. –  DaveParillo Dec 1 '09 at 19:19
1  
Also mogrify will overwrite the original images, use convert to make new files in the desired format. –  DaveParillo Dec 1 '09 at 19:20
    
mogrify did the trick, I was completely unaware of it until now. Thank you very much. –  Alex Marshall Mar 28 '10 at 16:20
    
Perfect! Thanks! ImageMagick got automatically installed when I installed Zbar (a barcode reader, it Depended on ImageMagick,) but I didn't realize how useful this was! Thank you so much! –  JamesTheAwesomeDude Dec 25 '12 at 6:24
    
Please be aware, that in many cases Gimp generates smaller images than imagemagick, so if you are going for size, check gimp batch mode as well. –  Krystian Jul 25 '13 at 8:10

There is also a wizard based batch processor available:

DBP (David's Batch Processor) for GIMP

enter image description here

share|improve this answer
    
I've tried so many different ways to batch convert a bunch of DDS files to another file format, and this is the only way that's worked. Thank you so much! –  Mike Pateras Mar 19 '11 at 16:19
    
There's also bimp (registry.gimp.org/node/26259) –  franzlorenzon Apr 8 at 9:33

Although it's not the easiest solution, see GIMP Batch Mode :

GIMP comes with a so-called batch mode that allows you to do image processing from the command line. It also makes it easy to apply the same set of operations to a number of images. We have got a lot of questions on the mailing-lists on how to use the batch mode and this small page tries to explain the basics to you.

share|improve this answer
    
Some example commands? –  Likso Jun 5 '13 at 9:58

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.

share|improve this answer
3  
Irfanview is named for its author, Irfan Skiljan. Irfanview is pronounced "EarfanView". See irfanview.com/main_about.htm for more. –  eleven81 Dec 1 '09 at 17:34
1  
Thanks, fixed the spelling. ;) –  AlexMax Dec 9 '09 at 16:11
    
Yeah! Irfanview is THE dafault converter ;) –  kokbira Aug 26 '10 at 12:51
    
There's this to keep in mind for Irfanview, though: "IrfanView is provided as freeware, but only for private, non-commercial use (that means at home). IrfanView is free for educational use (schools, universities, museums and libraries) and for use in charity or humanitarian organisations. If you intend to use IrfanView at your place of business or for commercial purposes, please register and purchase it." irfanview.com/eula.htm –  Michael Schumacher Mar 27 at 14:59

I am going to fall into the camp of using the right tool for the job and I have both Irfanview, and ImageMagick installed, and agree that both are fantastic tools. However let me throw in one more option for posterity. I don't use XnView on a regular basis, but keep a copy of the portable version around to keep on my usb so that I have a powerful easy to use very capable image tool available when I'm out and about. The beauty of the portable version is that you can use it and if you don't like it just delete the install directory. It along with dozens of other free and open source portable applications is available at http://portableapps.com/ or specifically http://portableapps.com/news/2009-12-06_-_xnview_portable_1.97 The installer will create a directory that contains everything necessary to run the program. Just go to that directory, start the EXE, give it a test. As stated above, when you get tired of it just delete the whole directory. They all run just like that from a USB stick as well. I have about 80 apps I carry around with me and use on public or shared PC's.

share|improve this answer
    
Similar to Irfanview, XnView has some usage restrictions: "XnView is provided as FREEWARE (NO Adware, NO Spyware) for private or educational use (including non-profit organizations)." - see xnview.com/en/xnview –  Michael Schumacher Mar 27 at 15:02

Although I am not really answering the question here I have alternative solution that has worked for me quite well and works from within the GIMP.

Keep in mind this might not be best solution for very large number of images.

Export Layers plugin for GIMP (I am not an author of this plug-in)

  • uses native dialogs for file format export procedures to adjust file format settings.
  • uses layer names as filenames for the exported images.
  • supports layer groups and optionally treats them as folders.
  • can optionally export only layers whose file extension matches specified file format.
  • can use file extensions in layer names as file formats
  • can use layers with names in [square brackets] as background layers
  1. First make sure you have GIMP 2.8 or higher (I confirm it works on 2.8.14)
  2. Download the plug-in (make sure it saves as file with .py extension)
  3. Paste the plug-in into the GIMP_INSTALLATION_FOLDER\lib\gimp\2.0\plug-ins
  4. Import your images as layers (File > Open as layers).
  5. Select File > Export Layers.. or Export Layers To
  6. Dialogue window will pop up with export options that look similar to any other GIMP dialogue window and are very self descriptive.

NOTE: If you paste the plug-in make sure GIMP is not working, if it is restart it.

share|improve this answer
    
Please read How do I recommend software for some tips as to how you should go about recommending software. At the very least you should provide more than just a link, for example some additional information about the software itself. Also, if you are the author of the program, you must say so. –  G-Man Mar 22 at 17:18
    
Also, answers should be actual solutions. Pointing someone to a tool or a reference tells them where to look for a solution, but doesn't explain how to solve their problem. A link to someone else's work is a helpful hint that is more appropriate as a comment, which requires a little more rep. –  fixer1234 Mar 22 at 21:59

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.