opening a YUV image with ImageMagick

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
freewol

opening a YUV image with ImageMagick

Post by freewol »

Hello,

I was using until today ImageMagick 6.3.0, which could open perfectly well YUV 4:2:2 images but not YUV 4:2:0 images, so i decided to update my software. I downloaded the sources of the 6.4.1 version, compiled them on my opensuse 64b system, and I now have a problem with both 4:2:2 and 4:2:0 images :(

$ display --version
Version: ImageMagick 6.4.1 09/11/08 Q16 http://www.imagemagick.org

$ od -Ad -tx1 black_128_100.yuv
0000000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
*
0012800 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f 7f
*
0025600

$display -size 128x100 -depth 8 -sampling-factor 4:2:2 -interlace plane black_128_100.yuv

And the image displayed is green, as it used to be with images filled with "0", which is not the case for this one ad you can see. And this image still shows black with the imagemagick 6.3.0 that I still have on another computer (with same linux / hardware).

Thanks in advance for your help :)

PS : there is no problem with rgb raw images, or bmp images
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: opening a YUV image with ImageMagick

Post by magick »

Add -colorspace RGB to your display command line. If that fails, post a URL to your image so we can download it and reproduce the problem.
freewol

Re: opening a YUV image with ImageMagick

Post by freewol »

Thanks :)
Now it works again for YUV422 images, though still not for 420 ones but I didn't hope that much ;)
Post Reply