Defect #20591
closed
PDF export does not determine picture (.png) height correctly
Added by Marwijn Hessel over 9 years ago.
Updated about 9 years ago.
Description
When exporting a redmine page as PDF. Somehow the height of pictures (.png) is not determined correctly. When there are more pictures on a page, in the PDF export these are laying on top of each other (see example in attachment).
Files
- Status changed from New to Confirmed
Marwijn Hessel wrote:
When exporting a redmine page as PDF.
Somehow the height of pictures (.png) is not determined correctly.
When there are more pictures on a page, in the PDF export these are laying on top of each other (see example in attachment).
I can't reproduced.
Can you have reproduced pictures?
There is no relation with the used pictures and this issue.
When exporting to PDF the height of any picture is incorrect.
Sometimes they will be placed on top of each other, sometimes there is one picture per page (when multiple does fit).
I tried different picture formats (like BMP, JPG, PNG), it does not change a thing ...
When looking into the produced HTML code of redmine, the picture height (and width) is not mentioned in the <img> tag. Which should be accordingly to W3C (http://www.w3schools.com/tags/tag_img.asp).
This is only guessing if this has any relation with this issue (but it is no correct HTML).
When printing the page all goes well, pictures are on the place where they should be.
I reproduced this problem.
This is the bug of rbpdf with PNG alpha channel picture.
This problem fixed by rbpdf 1.18.7.
please bundle update.
- Priority changed from Urgent to Normal
- Target version set to 2.6.8
- Status changed from Confirmed to Closed
- Resolution set to Fixed
I have updated rbpdf to 1.18.7 in trunk, 3.1-stable, 3.0-stable and 2.6-stable, thanks.
Also available in: Atom
PDF