Projects
New Ticket     Wiki     Browse Source     Timeline     Roadmap     Bug Reports     Search

Ticket #14578 (closed defect: fixed)

Opened 9 months ago

Last modified 9 months ago

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

Reported by: ricci@… Owned by: ryandesign@…
Priority: Normal Milestone: Port Bugs
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

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

Change History

Changed 9 months ago by ricci@…

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

Changed 9 months ago by ricci@…

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

  Changed 9 months ago by ricci@…

  • owner changed from macports-tickets@… to ryandesign@…

follow-up: ↓ 4   Changed 9 months ago by ryandesign@…

  • milestone set to Port Bugs

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

  Changed 9 months ago by raimue@…

  • summary changed from Fix alpha channel bug in PDF generation and upgrade to 6.3.9-2 to ImageMagick: Fix alpha channel bug in PDF generation and upgrade to 6.3.9-2

in reply to: ↑ 2   Changed 9 months ago by ricci@…

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>.

  Changed 9 months ago by ryandesign@…

  • status changed from new to closed
  • resolution set to fixed

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.

  Changed 9 months ago by ricci@…

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

Note: See TracTickets for help on using tickets.