Problems converting CR2 to PPM

Started Jan 29, 2013 | Questions thread
newmikey Veteran Member • Posts: 4,739
Re: Problems converting CR2 to PPM

Spixxel wrote:


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


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-70 Pentax smc DA* 50-135mm F2.8 ED (IF) SDM Sigma 8-16mm F4.5-5.6 DC HSM Sigma 85mm F1.4 EX DG HSM +3 more
Keyboard shortcuts:
FForum PPrevious NNext WNext unread UUpvote SSubscribe RReply QQuote BBookmark MMy threads
Color scheme? Blue / Yellow