Opened 17 years ago

Closed 17 years ago

Last modified 16 years ago

#14578 closed defect (fixed)

ImageMagick: Fix alpha channel bug in PDF generation and upgrade to 6.3.9-2

Reported by: ghosthound Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc:
Port:

Description

Attached file fixes a bug when an image has an alpha channel and is converted to PDF. Attached patch (for Portfile) applies said file and uprevs to 6.3.9-2.

Attachments (2)

patch-coders-pdf.c.diff (429 bytes) - added by ghosthound 17 years ago.
patchfile to fix bug in alpha channel usage when converting image to pdf.
patch_im.20080306.2321 (1.2 KB) - added by ghosthound 17 years ago.
patch to graphics/ImageMagick Portfile to apply alpha-channel fix and uprev to 6.3.9-2

Download all attachments as: .zip

Change History (9)

Changed 17 years ago by ghosthound

Attachment: patch-coders-pdf.c.diff added

patchfile to fix bug in alpha channel usage when converting image to pdf.

Changed 17 years ago by ghosthound

Attachment: patch_im.20080306.2321 added

patch to graphics/ImageMagick Portfile to apply alpha-channel fix and uprev to 6.3.9-2

comment:1 Changed 17 years ago by ghosthound

Owner: changed from macports-tickets@… to ryandesign@…

comment:2 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Milestone: Port Bugs

Where did this patch come from? Is there an upstream bugreport for this already?

comment:3 Changed 17 years ago by raimue (Rainer Müller)

Summary: Fix alpha channel bug in PDF generation and upgrade to 6.3.9-2ImageMagick: Fix alpha channel bug in PDF generation and upgrade to 6.3.9-2

comment:4 in reply to:  2 Changed 17 years ago by ghosthound

Replying to ryandesign@macports.org:

Where did this patch come from? Is there an upstream bugreport for this already?

I made the patch after walking through the coders/pdf.c to see where it writes out the SMask reference information and (reasonably carefully) counting new object outputs from there until the alpha channel information is written. I believe the patch is correct, though having another set of eyes on it would be all good. Upstream has a bug for this, see <http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=9202>.

comment:5 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

I updated ImageMagick to 6.3.9-5 in r34972 which I believe includes this fix. Please reopen this ticket if you still experience the issue with that version.

comment:6 Changed 17 years ago by ghosthound

Indeed, it appears that 6.3.9-5 fixes this problem, thanks much!

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.