Feature #14599

Support 16-bit depth PNG images in PDF export

Added by Pavel Samokha almost 5 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

Tried on latest version, RMagick installed, image attached to WIKI page, added as and shown in page, but no image when exported to pdf.

According to #3261 it must be fixed for issues export to pdf, but not working in WIKI for me


Related issues

Related to Redmine - Feature #12447: Support for PNG with alpha channel in pdf export Closed

History

#1 Updated by Toshi MARUYAMA almost 5 years ago

  • Description updated (diff)

#2 Updated by Stanislav German-Evtushenko almost 5 years ago

Almost the same to me. I can see some images in pdf but not all of them:

$ file *
img1.png: PNG image, 26 x 25, 8-bit/color RGB, non-interlaced
img2.png: PNG image, 24 x 24, 8-bit/color RGBA, non-interlaced
img3.png: PNG image, 24 x 24, 8-bit/color RGBA, non-interlaced
img4.png: PNG image, 833 x 945, 8-bit/color RGBA, non-interlaced
img5.png: PNG image, 47 x 47, 8-bit colormap, non-interlaced
img6.png: PNG image, 24 x 24, 8-bit/color RGBA, non-interlaced

Only img1.png and img5.png are shown in pdf but others are not.

#3 Updated by Stanislav German-Evtushenko almost 5 years ago

Environment:
  Redmine version                2.3.2.stable.12078
  Ruby version                   1.9.3-p385 (2013-02-06) [x86_64-linux]
  Rails version                  3.2.13
  Environment                    production
  Database adapter               SQLite
Redmine plugins:
  redmine_bbb                    0.1.2
  redmine_people                 0.1.6

#4 Updated by Mischa The Evil almost 5 years ago

  • Status changed from New to Closed
  • Resolution set to Duplicate

Stanislav German-Evtushenko wrote:

Almost the same to me. I can see some images in pdf but not all of them:
[...]
Only img1.png and img5.png are shown in pdf but others are not.

Thanks for the info. It shows that this issue duplicates #12447.

#5 Updated by Mischa The Evil almost 5 years ago

  • Duplicates Feature #12447: Support for PNG with alpha channel in pdf export added

#6 Updated by Mischa The Evil almost 5 years ago

  • Status changed from Closed to Reopened

Sorry. I did not noticed the initial author of this issue.

Pavel, can you please check if the images you are using are indeed PNG's with alpha channel and report your results here?

#7 Updated by Mischa The Evil almost 5 years ago

  • Status changed from Reopened to Needs feedback

#8 Updated by Pavel Samokha almost 5 years ago

Tried pngs without alpha channel (got from here http://www.fnordware.com/superpng/samples.html) - the same result - no images in PDF export.

#9 Updated by Jun NAITOH almost 5 years ago

I tried note-8 URL Images.
The following error occurred.

pdf: Image: error: TCPDF error: Alpha channel not supported: /opt/Redmine/redmine.d/redmine-2.2.3/files/130805004924_pngtest8rgba.png
pdf: Image: error: TCPDF error: 16-bit depth not supported: /opt/Redmine/redmine.d/redmine-2.2.3/files/130805004924_pngtest16rgba.png
pdf: Image: error: TCPDF error: 16-bit depth not supported: /opt/Redmine/redmine.d/redmine-2.2.3/files/130805004924_pnggradHDrgba.png
pdf: Image: error: TCPDF error: 16-bit depth not supported: /opt/Redmine/redmine.d/redmine-2.2.3/files/130805004924_pnggrad16rgb.png
pdf: Image: error: TCPDF error: 16-bit depth not supported: /opt/Redmine/redmine.d/redmine-2.2.3/files/130805005029_pnggrad16rgba.png

Sorry, RFPDF (TCPDF) library is not supporting 16-bit depth PNG image.

#10 Updated by Toshi MARUYAMA almost 5 years ago

  • Subject changed from Wiki export to PDF does not contains images to Wiki export to PDF does not contains 16-bit depth PNG images
  • Status changed from Needs feedback to New
  • Resolution deleted (Duplicate)

#11 Updated by Toshi MARUYAMA almost 5 years ago

  • Subject changed from Wiki export to PDF does not contains 16-bit depth PNG images to PDF does not contains 16-bit depth PNG images

#12 Updated by Mischa The Evil almost 5 years ago

  • Duplicates deleted (Feature #12447: Support for PNG with alpha channel in pdf export)

#13 Updated by Etienne Massip almost 5 years ago

  • Related to Feature #12447: Support for PNG with alpha channel in pdf export added

#14 Updated by Etienne Massip almost 5 years ago

  • Tracker changed from Defect to Feature
  • Subject changed from PDF does not contains 16-bit depth PNG images to Support 16-bit depth PNG images in PDF export

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

Also available in: Atom PDF