Help - Search - Members - Calendar
Full Version: Wrong format from script conversion - Script says PNG, resulting file is BMP
PMView Pro Forums > PMView Pro Discussion > PMView - OS/2 Technical Support
Teijo
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?
Peter
Teijo,

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

Thanks,
Peter
FWIW, the file format is always a 4 character combo, so for 3 letter formats there needs to be a trailing space.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.