Ticket #14578 (closed defect: fixed)
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
Change History
Changed 5 years ago by ricci@…
- Attachment patch-coders-pdf.c.diff added
Changed 5 years ago by ricci@…
- Attachment patch_im.20080306.2321 added
patch to graphics/ImageMagick Portfile to apply alpha-channel fix and uprev to 6.3.9-2
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.


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