I'm writing a rexx script to convert RAW images to something a bit more accessible until PMView can access them directly using dcraw.exe. To save disk space I want to call PMView 3.10 to convert the PPM files to PNG. However, although the script designates that the target file should be PNG, what is generated is a BMP file.
If the script asks for a JPEG file, a JPEG file is generated.
The PMView script is a temporary one generated by the REXX script in the f:tmp directory. It looks like this:
PMView Script
FileFormat;filetype=png
OutputDir;dirname=;useoriginaldir=yes
The command line to call PMView is
e:optpmviewpmview.exe /scr=f:tmpunraw.pmview.PNG.scq f:dcimdirectorynamefilename.ppm
Any ideas? Is this reproducible by anyone else?
Teijo,
Change "filetype=png" to "filetype=PNG " (i.e. PNG all caps and with one trailing space). Then it should work fine.
Thanks,
FWIW, the file format is always a 4 character combo, so for 3 letter formats there needs to be a trailing space.
Powered by Invision Power Board (http://www.invisionboard.com)
© Invision Power Services (http://www.invisionpower.com)