Problems converting CR2 to PPM

Started Jan 29, 2013 | Questions thread
Shop cameras & lenses ▾
newmikey Veteran Member • Posts: 4,425
Re: Problems converting CR2 to PPM

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 Tamron SP AF 17-50mm F/2.8 XR Di II LD Aspherical (IF) Sigma 8-16mm F4.5-5.6 DC HSM +5 more
Keyboard shortcuts:
FForum PPrevious NNext WNext unread UUpvote SSubscribe RReply QQuote BBookmark MMy threads
Color scheme? Blue / Yellow