Problems converting CR2 to PPM

Started Jan 29, 2013 | Questions thread
newmikey
Veteran MemberPosts: 3,849Gear list
Like?
Re: Problems converting CR2 to PPM
In reply to Spixxel, Jan 29, 2013

Spixxel wrote:

Hi,

I am trying to use dcraw to convert an image from CR2 to PPM.

The config that I am using is

for %%A in (*.CR2) do dcraw.exe -w -q 1 -h %%A

But the resolution of the image(s) is not exactly half the size after the conversion as before (want them to be subsampled).

The orginal RAW images have 4752x3168 and the converted PPM images have

2385x1589

and 2385*2 = 4770

and 1589*2 = 3178

so it seems to rescale or add 18x10 pixels to the raw images.

Would appreciate any idea of what's happending.

Best Regards.

Your commandline is perfectly OK and the outcome is fine too. As a previous poster already eluded too, DCRAW and all DCRAW-based converters include the edge pixels that some other raw converters crop(as well as the in-camera JPEG engine).

-- hide signature --
 newmikey's gear list:newmikey's gear list
Ricoh GR Pentax K-5 IIs Pentax smc DA* 50-135mm F2.8 ED (IF) SDM Sigma 8-16mm F4.5-5.6 DC HSM Sigma 17-70mm F2.8-4 DC Macro OS HSM +2 more
Reply   Reply with quote   Complain
Keyboard shortcuts:
FForum PPrevious NNext WNext unread UUpvote SSubscribe RReply QQuote BBookmark post MMy threads
Color scheme? Blue / Yellow