Reading several channels in RAW images
Posted: 2010-07-31T16:12:06-07:00
I'm only talking about plain raw RGB or CMYK images (with 8 bits per sample) - not about special raw camera files. I don't have much experience in any of this.. So maybe someone else has some hints.
If there are 5 channels in a raw file, I can simply read it like that:
convert -depth 8 -size ..x.. CMYKA:foo.raw output
But if there are more than 5 channels? (from spot colors or several alpha channels) When there are more channels in a 'normal' image file, IM has no problem of course, as it can discard the extra samples. But it seems that a raw image with more channels is not readable. (Well, its.. possible with special tricks, e.g. by reading as gray and then 'cropping away' the extra channels.) Does anyone know some easy read modifiers or options in ImageMagick's convert or stream that would help in handling the raw channels?
If there are 5 channels in a raw file, I can simply read it like that:
convert -depth 8 -size ..x.. CMYKA:foo.raw output
But if there are more than 5 channels? (from spot colors or several alpha channels) When there are more channels in a 'normal' image file, IM has no problem of course, as it can discard the extra samples. But it seems that a raw image with more channels is not readable. (Well, its.. possible with special tricks, e.g. by reading as gray and then 'cropping away' the extra channels.) Does anyone know some easy read modifiers or options in ImageMagick's convert or stream that would help in handling the raw channels?