Bug 1035392
Summary: | Handling of png image file 2nd inclusion is broken | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Patrick Monnerat <patrick> | ||||||
Component: | php-tcpdf | Assignee: | Remi Collet <fedora> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 18 | CC: | fedora, fedora | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | php-tcpdf-6.0.049-1.el6 | Doc Type: | Bug Fix | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2013-12-11 01:59:22 UTC | Type: | Bug | ||||||
Regression: | --- | Mount Type: | --- | ||||||
Documentation: | --- | CRM: | |||||||
Verified Versions: | Category: | --- | |||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||
Embargoed: | |||||||||
Attachments: |
|
Reproduced with latest upstream 6.0.048 Created attachment 829838 [details]
tcpdf.patch
You can try the attached patch to see if it solves the issue for you. I will submit it upstream. The patch fixes the problem. Thanks. Patch merged in upstream version 6.0.049. Update in process. php-tcpdf-6.0.047-1.fc18 has been submitted as an update for Fedora 18. https://admin.fedoraproject.org/updates/FEDORA-2013-21841/php-tcpdf-6.0.047-1.fc18 php-tcpdf-6.0.047-1.fc19 has been submitted as an update for Fedora 19. https://admin.fedoraproject.org/updates/FEDORA-2013-21894/php-tcpdf-6.0.047-1.fc19 php-tcpdf-6.0.047-1.el6 has been submitted as an update for Fedora EPEL 6. https://admin.fedoraproject.org/updates/FEDORA-EPEL-2013-12167/php-tcpdf-6.0.047-1.el6 php-tcpdf-6.0.047-1.fc20 has been submitted as an update for Fedora 20. https://admin.fedoraproject.org/updates/FEDORA-2013-22035/php-tcpdf-6.0.047-1.fc20 Package php-tcpdf-6.0.049-1.fc20: * should fix your issue, * was pushed to the Fedora 20 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing php-tcpdf-6.0.049-1.fc20' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-22035/php-tcpdf-6.0.049-1.fc20 then log in and leave karma (feedback). php-tcpdf-6.0.049-1.fc19 has been pushed to the Fedora 19 stable repository. If problems still persist, please make note of it in this bug report. php-tcpdf-6.0.049-1.fc18 has been pushed to the Fedora 18 stable repository. If problems still persist, please make note of it in this bug report. php-tcpdf-6.0.049-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report. php-tcpdf-6.0.049-1.el6 has been pushed to the Fedora EPEL 6 stable repository. If problems still persist, please make note of it in this bug report. |
Created attachment 829801 [details] Small program causing the failure Description of problem: Drawing a PNG image file is included more than once in the same PDF fails. Version-Release number of selected component (if applicable): php-tcpdf-6.0.042-1.fc18 How reproducible: Always Steps to Reproduce: 1. Download the failing program in attachment and update it to reference one of your local PNG file twice. 2. Launch it from a browser. Actual results: ( ! ) Warning: fopen(/tmp/__tcpdf_imgmask_alpha_0960c5a03fd8829ab81573c61b701257): failed to open stream: No such file or directory in /usr/share/php/tcpdf/include/tcpdf_images.php on line 238 Call Stack # Time Memory Function Location 1 0.0003 240408 {main}( ) ../ttcpdf.php:0 2 0.5917 11708088 TCPDF->Image( ) ../ttcpdf.php:7 3 0.5918 11711224 TCPDF->Image( ) ../tcpdf.php:6945 4 0.5920 11713584 TCPDF_IMAGES::_parsepng( ) ../tcpdf.php:6968 5 0.5920 11713680 fopen ( ) ../tcpdf_images.php:238 and consecutive problems. Expected results: A PDF document with twice the same image.