Feature #12447

Support for PNG with alpha channel in pdf export

Added by Fabio Bonfante almost 6 years ago. Updated almost 4 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:-% Done:

0%

Category:PDF export
Target version:2.6.0
Resolution:Fixed

Description

The /vendor/plugins/rfpdf/tcpdf.rb, port of FPDF, not work with png with alpha channel. The latest version of www.fpdf.org (1.7.1) is now able to do that, and an update to the ported class, will be really appreciated.

support-alpha-png-12447.patch Magnifier (5.38 KB) Yukinari TOYOTA, 2013-10-24 19:22


Related issues

Related to Redmine - Feature #14599: Support 16-bit depth PNG images in PDF export Closed

History

#1 Updated by Jean-Philippe Lang almost 6 years ago

  • Tracker changed from Defect to Feature
  • Subject changed from PNG with alpha channel not supported in pdf export to Support for PNG with alpha channel in pdf export

#2 Updated by SA Frolov over 5 years ago

+1

#3 Updated by Mischa The Evil about 5 years ago

  • Duplicated by Feature #14599: Support 16-bit depth PNG images in PDF export added

#5 Updated by Mischa The Evil about 5 years ago

  • Duplicated by deleted (Feature #14599: Support 16-bit depth PNG images in PDF export)

#6 Updated by Etienne Massip about 5 years ago

  • Related to Feature #14599: Support 16-bit depth PNG images in PDF export added

#7 Updated by Yukinari TOYOTA almost 5 years ago

I have written a patch for r12228 by porting https://code.google.com/p/pyfpdf/source/detail?r=6d269f7474c6
However, interlacing and 16-bit depth are not supported yet.

#8 Updated by Yukinari TOYOTA almost 5 years ago

Here is a backported plugin by monkey patching: https://github.com/t-yuki/redmine_pdf_export_backports

#9 Updated by Oscar Santos over 4 years ago

Has the patch provided by Yukinari been validated with newer versions of Redmine? We are on 2.3.4 stable. Thank you for helping to address this 16-bit PNG issue.

#10 Updated by Oscar Santos over 4 years ago

Applied the patch in my test environment but saw no change. I loaded the Redmine PDF Export Backports plugin which granted the ability to export as HTML but PDF is still unable to render. Any ideas on how to resolve? Thank you.

#11 Updated by Oscar Santos over 4 years ago

Update

I have loaded the plugin provided by Yukinari https://github.com/t-yuki/redmine_pdf_export_backports and was able to resolve the PDF export issue. In order to export PDF's, the short syntax of declaring an image must be used. For example:

"!myimage.png!" without quotes

We were using the long syntax of declaring the entire URL string. Adjusting the syntax allowed images to display properly in PDF exports.

Thank you Yukinari for your help with this.

#12 Updated by Toshi MARUYAMA almost 4 years ago

  • Status changed from New to Closed
  • Target version set to 2.6.0
  • Resolution set to Fixed

Fixed by #17570.

#13 Updated by li an almost 4 years ago

It is great!! I tested under redmine 2.3.2, and tested with alpha channel png, now exported pdf can display that type of png normal. thanks.

Yukinari TOYOTA wrote:

Here is a backported plugin by monkey patching: https://github.com/t-yuki/redmine_pdf_export_backports

Also available in: Atom PDF