Bug when converting image with matte to pdf

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
darkart
Posts: 14
Joined: 2008-03-06T23:38:26-07:00

Re: Bug when converting image with matte to pdf

Post by darkart »

I have a similar problem, my source is a gif w/ an alpha channel. The created PDF has the SMask referring to object 15 while the SMask data is in object 16. Adobe Reader (v 8.1.2, Mac OS X 10.5.2, x86) gives and error 14 if the SMask refers to object 15. If I edit the PDF to set the SMask to refer to object 16, Adobe Reader opens the PDF without errors.

I'm using ImageMagick 6.3.9-1.

I took a quick look at coders/pdf.c, it appears that the SMask object will be +7 from when the SMask line is written. Current (6.3.9-1) code has +6. I've made a patch for this against the 6.3.9-2 source at made it available at:

http://www.darkart.com/people/eric/patc ... pdf.c.diff


It'd be great if someone could verify that is correct (I looked quickly) and if so, incorporate it.



Thanks much!


-eric
darkart
Posts: 14
Joined: 2008-03-06T23:38:26-07:00

Re: Bug when converting image with matte to pdf

Post by darkart »

It appears this is fixed in 6.3.9-5, thanks much!
Post Reply