![]() |
.bat script issues - Printable Version +- Gimp-Forum.net (https://www.gimp-forum.net) +-- Forum: GIMP (https://www.gimp-forum.net/Forum-GIMP) +--- Forum: Extending the GIMP (https://www.gimp-forum.net/Forum-Extending-the-GIMP) +--- Thread: .bat script issues (/Thread-bat-script-issues) |
.bat script issues - ThaUnknown_ - 03-26-2018 Code: @ECHO OFF RE: .bat script issues - rich2005 - 03-27-2018 It is some time since I messed around with Win batch files. Are you sure there is not an error in the script used. Is it a modified version of this? https://gist.github.com/dbuscombe-usgs/6085758. Do you need -b '(gimp-quit 0)' tacking on the end? as: Code: "D:\Programs\GIMP 2\bin\gimp-2.8.exe" -i -b '(batch-auto-fix \"%PATH%\")' -b '(gimp-quit 0)' Another way is using Imagemagick - http://www.imagemagick.org this would need wrapping in a batch file to cycle through the images. For a single image. Code: magick input.png png8:output.png Something like this for a folder of images. (In a Win 7 VM) Code: for /r %x in (*.png) do magick "%x" "png8:%x_indexed.png" screenshot: https://i.imgur.com/CjGw8PN.jpg No windows expert but it seems to work Hopefully one of the Windows guys will come along. RE: .bat script issues - Kevin - 03-27-2018 Rich - you can't use single-quotes in Windows, you have to use double quotes everywhere: Code: "D:\Programs\GIMP 2\bin\gimp-2.8.exe" -i -b "(batch-auto-fix \"%PATH%\")" -b "(gimp-quit 0)" RE: .bat script issues - rich2005 - 03-27-2018 (03-27-2018, 02:13 PM)Kevin Wrote: Rich - you can't use single-quotes in Windows, you have to use double quotes everywhere: Yes, and you are the guy I was hoping would come along ![]() |