Page 1 of 1

CIN decoder doesn't work

Posted: 2008-08-21T16:34:25-07:00
by aziwoqpd
Something seems to have broken the Cineon decoder in recent versions of ImageMagick. Whenever I try to decode a .cin as saved by Photoshop I get unexpected end of file errors. Older versions don't seem to have this problem.

Here's an example image:
http://lfx.org/~jperry/broken.cin

Re: CIN decoder doesn't work

Posted: 2008-08-21T16:50:53-07:00
by aziwoqpd
This quick and dirty fix seems to get rid of the load errors:

============================================================
--- coders/cin.c 12a907151c93ed6344e4d7a4a680c043fb6af0da
+++ coders/cin.c f85e84d62e0cbc24a806dd0385f111cd7c26e684
@@ -713,7 +713,7 @@ static Image *ReadCINImage(const ImageIn
return(DestroyImageList(image));
}
pixels=GetQuantumPixels(quantum_info);
- length=GetQuantumExtent(image,quantum_info,quantum_type);
+ // length=GetQuantumExtent(image,quantum_info,quantum_type);
for (y=0; y < (long) image->rows; y++)
{
q=SetImagePixels(image,0,y,image->columns,1);

Re: CIN decoder doesn't work

Posted: 2008-08-21T16:57:44-07:00
by magick
We have a patch for the problem you reported in the ImageMagick subversion trunk. Thanks.