[EMAIL PROTECTED] píše v Po 24. 03. 2008 v
14:23 +0100:
> > convert photo.jpg -colorspace YUV -separate yuv-channel-%d.png
> 
> The PNG image format does not support the YUV colorspace, instead it converts
> non-RGB colorspace to RGB before the image written.  Try using an intermediate
> image format that supports YUV such as YUV or MIFF.

Thanks for reply. I'm not sure ATM how does MIFF work, but I tried
converting RGB JPEG to YUV MIFF

$ convert photo-0001.jpg -colorspace YUV -separate yuv-output.miff

(and I noticed converting this MIFF file to PNG actually produces three
files, each for one YUV component. Ok.)

But I failed converting this YUV colorspace MIFF back to RGB JPEG by

$ convert yuv-output.miff -colorspace YUV -combine rgb-output.jpg

or

$ convert yuv-output.miff -colorspace RGB -combine rgb-output.jpg

The result was in both instances image with wrong colors, IMHO the ones
you get when you interpret YUV channels data as RGB values.

(Please try for yourself and you'll see what I mean.)

Vit

_______________________________________________
Magick-bugs mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-bugs

Reply via email to