Printable Version of Topic

Click here to view this topic in its original format

PMView Pro Forums _ PMView - OS/2 Technical Support _ Wrong format from script conversion - Script says PNG, resulting file is BMP

Posted by: Teijo Feb 6 2005, 05:34 AM

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?

Posted by: Peter Feb 7 2005, 03:18 PM

Teijo,

Change "filetype=png" to "filetype=PNG " (i.e. PNG all caps and with one trailing space). Then it should work fine.

Thanks,

Posted by: Peter Feb 7 2005, 03:22 PM

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)