CIN decoder doesn't work

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
aziwoqpd

CIN decoder doesn't work

Post 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
aziwoqpd

Re: CIN decoder doesn't work

Post 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);
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: CIN decoder doesn't work

Post by magick »

We have a patch for the problem you reported in the ImageMagick subversion trunk. Thanks.
Post Reply