I need to invert multiple .png
images from black to white using command line.
I have found that I might use gimp plugin "plug-in-vinvert" but I can not figure out how to use it. I have tried something like
gimp -b '(plug-in-vinvert "INT32" "filename.png" "/resultsFolder/")'
and many other combinations but with no success.
Why gimp? Try
imagemagick
package. It's a great command line image processor. In your case you can use it like:To modify multiple files at once, e.g.
The exact method may depend on how you source your paths.
Here's an actual example...
To convert a batch of images, the fastest and shortest way I know is to use the following ImageMagick command:
N.B. Change image format accordingly and make sure you have a copy of the original images.
Try this GIMP plugin for performing a routine on multiple images simultaneously: "Batch Image Manipulation Plugin" http://registry.gimp.org/node/26259
Download and extract the package, open a terminal inside the resulting folder, and run:
Then start Gimp, go to File - Batch Image Manipulation, in order to start the plugin. There you can add the multiple images.
As the question asks for inverting colors, add the corresponding manipulation set: Add - Other GIMP procedure, search for 'invert' and you will find 'gimp-invert'
OK, and before 'Apply' you can set the output folder which by default is
~/
.Hope that helps. Have fun GIMPing!