Is there a way to run pngout on Windows in a batch script (without the GUI)? Our requirement is to convert a large number of compressed PNG to uncompressed PNG .. and we want to do it as part of our make/build process. We are looking at the trial version of pngoutWin, but there is no mention of scripting cabability.
Awesoken at
Re: Does pngout have a batch (command line) mode?
Open a command prompt and type: "for /?". If you're looking for an example with PNGOUT and the "for" command, run PNGOUT with no parameters.
David at
johnHoward said at
Is there a way to run pngout on Windows in a batch script (without the GUI)? Our requirement is to convert a large number of compressed PNG to uncompressed PNG .. and we want to do it as part of our make/build process. We are looking at the trial version of pngoutWin, but there is no mention of scripting cabability.
pngoutwin.exe will accept either a file name or a folder name on the command line, however it will prompt you if it's a folder or if you have multiple trials turned on. If your goal is uncompressed files, then multiple trials probably don't make sense. If your build process could run pngoutwin for each file, then it would work. If you would rather specify a folder, then this wouldn't currently work in an automated build environment. As Ken said, PNGOUT for DOS would be your best option.
If "a large number" is "a really, really larger number" such that your build process would benefit from the parallelism in PNGOUTWin, let me know if you'd be interested in a version of PNGOUTWin that supports what you are after (i.e., something like "pngoutwin.exe c:\dir\*.png -noprompt.") Since your goal is uncompressed PNGs, however, I'm not sure that you would get much benefit from having any parallelism.