New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #14578 (closed defect: fixed)

Opened 5 years ago

Last modified 4 years 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:
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@… 5 years ago.
patchfile to fix bug in alpha channel usage when converting image to pdf.
patch_im.20080306.2321 (1.2 KB) - added by ricci@… 5 years ago.
patch to graphics/ImageMagick Portfile to apply alpha-channel fix and uprev to 6.3.9-2

Change History

Changed 5 years ago by ricci@…

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

Changed 5 years ago by ricci@…

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

comment:1 Changed 5 years ago by ricci@…

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

comment:2 follow-up: ↓ 4 Changed 5 years ago by ryandesign@…

  • Milestone set to Port Bugs

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

comment:3 Changed 5 years 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

comment:4 in reply to: ↑ 2 Changed 5 years 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>.

comment:5 Changed 5 years 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.

comment:6 Changed 5 years ago by ricci@…

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

comment:7 Changed 4 years ago by anonymous

  • Milestone Port Bugs deleted

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.