PMView.com

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Wrong format from script conversion - Script says PNG, resulting file is BMP
Teijo
post Feb 6 2005, 05:34 AM
Post #1


Forum Member


Group: Members
Posts: 19
Joined: 8-September 01
Member No.: 79



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?
Go to the top of the page
 
+Quote Post
Peter
post Feb 7 2005, 03:18 PM
Post #2


Forum Member


Group: Admin
Posts: 672
Joined: 14-March 00
From: Wilmington, North Carolina
Member No.: 3



Teijo,

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

Thanks,


--------------------
Peter Nielsen (peter@pmview.com) "If you can dream it, you can do it" JFK.
Go to the top of the page
 
+Quote Post
Peter
post Feb 7 2005, 03:22 PM
Post #3


Forum Member


Group: Admin
Posts: 672
Joined: 14-March 00
From: Wilmington, North Carolina
Member No.: 3



FWIW, the file format is always a 4 character combo, so for 3 letter formats there needs to be a trailing space.


--------------------
Peter Nielsen (peter@pmview.com) "If you can dream it, you can do it" JFK.
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 28th March 2024 - 05:11 AM