https://bugzilla.redhat.com/show_bug.cgi?id=1378895
Bug ID: 1378895 Summary: 8-bpp TIFF images are broken in the resulting PDF document Product: Fedora Version: 23 Component: perl-PDF-API2 Assignee: jplesnik@redhat.com Reporter: ppisar@redhat.com QA Contact: extras-qa@fedoraproject.org CC: bjohnson@symetrix.com, jplesnik@redhat.com, perl-devel@lists.fedoraproject.org Blocks: 1369984 External Bug ID: CPAN 118047
Created attachment 1204154 --> https://bugzilla.redhat.com/attachment.cgi?id=1204154&action=edit 8-bpp TIFF image
This code creates an PDF with broken 8-bpp TIFF image:
#!/usr/bin/perl use strict; use warnings; use PDF::API2;
my $pdf = PDF::API2->new(-file => 'out.pdf'); my $page = $pdf->page; $page->mediabox(157, 196);
my $imgobj = $pdf->image_tiff('8.tiff');
my $gfx = $page->gfx; $gfx->image($imgobj, 0, 0, 157, 196);
$pdf->save; $pdf->end;
It works fine if the TIFF image has only 1 bit per pixel. I have perl-PDF-API2-2.025-1.fc23.noarch, but it it's broken in all Fedoras.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1369984 [Bug 1369984] gscan2pdf v1.3.8 saves imported PDF pages as negative images
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
--- Comment #1 from Fedora End Of Life jkurik@fedoraproject.org --- This message is a reminder that Fedora 23 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 23. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '23'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 23 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|23 |24
--- Comment #2 from Petr Pisar ppisar@redhat.com --- Still issue in F24 (perl-PDF-API2-2.028-1.fc24.noarch).
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
--- Comment #3 from Fedora End Of Life jkurik@fedoraproject.org --- This message is a reminder that Fedora 24 is nearing its end of life. Approximately 2 (two) weeks from now Fedora will stop maintaining and issuing updates for Fedora 24. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '24'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 24 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Version|24 |25
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Depends On| |1476237
--- Comment #4 from Petr Pisar ppisar@redhat.com --- Upstream proposes a new TIFF support based on Graphics::TIFF that has not yet been packaged.
Referenced Bugs:
https://bugzilla.redhat.com/show_bug.cgi?id=1476237 [Bug 1476237] Review Request: perl-Graphics-TIFF - Perl extension for the LibTIFF library
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
--- Comment #5 from Petr Pisar ppisar@redhat.com --- Created attachment 1305926 --> https://bugzilla.redhat.com/attachment.cgi?id=1305926&action=edit Fix as a dist-git patch
This adds the proposed upstream fix. It requires the new dependency.
https://bugzilla.redhat.com/show_bug.cgi?id=1378895 Bug 1378895 depends on bug 1476237, which changed state.
Bug 1476237 Summary: Review Request: perl-Graphics-TIFF - Perl extension for the LibTIFF library https://bugzilla.redhat.com/show_bug.cgi?id=1476237
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |CLOSED Resolution|--- |RAWHIDE
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
--- Comment #6 from Fedora End Of Life jkurik@fedoraproject.org --- This message is a reminder that Fedora 25 is nearing its end of life. Approximately 4 (four) weeks from now Fedora will stop maintaining and issuing updates for Fedora 25. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as EOL if it remains open with a Fedora 'version' of '25'.
Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version.
Thank you for reporting this issue and we are sorry that we were not able to fix it before Fedora 25 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora, you are encouraged change the 'version' to a later Fedora version prior this bug is closed as described in the policy above.
Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete.
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|jplesnik@redhat.com |ppisar@redhat.com
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
Petr Pisar ppisar@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |MODIFIED Fixed In Version| |perl-PDF-API2-2.033-3.fc28
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
--- Comment #7 from Fedora Update System updates@fedoraproject.org --- perl-PDF-API2-2.033-3.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2017-f23d7901cc
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #8 from Fedora Update System updates@fedoraproject.org --- perl-PDF-API2-2.033-3.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-f23d7901cc
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
--- Comment #9 from Fedora Update System updates@fedoraproject.org --- perl-PDF-API2-2.033-2.fc26 perl-Graphics-TIFF-6-1.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2017-df8f734c08
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|MODIFIED |ON_QA
--- Comment #10 from Fedora Update System updates@fedoraproject.org --- perl-Graphics-TIFF-6-1.fc26, perl-PDF-API2-2.033-2.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2017-df8f734c08
https://bugzilla.redhat.com/show_bug.cgi?id=1378895 Bug 1378895 depends on bug 1476237, which changed state.
Bug 1476237 Summary: Review Request: perl-Graphics-TIFF - Perl extension for the LibTIFF library https://bugzilla.redhat.com/show_bug.cgi?id=1476237
What |Removed |Added ---------------------------------------------------------------------------- Status|CLOSED |ON_QA Resolution|RAWHIDE |---
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
Fedora Update System updates@fedoraproject.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Fixed In Version|perl-PDF-API2-2.033-3.fc28 |perl-PDF-API2-2.033-3.fc28 | |perl-PDF-API2-2.033-2.fc26 Resolution|--- |ERRATA Last Closed| |2017-12-09 17:24:16
--- Comment #11 from Fedora Update System updates@fedoraproject.org --- perl-Graphics-TIFF-6-1.fc26, perl-PDF-API2-2.033-2.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
https://bugzilla.redhat.com/show_bug.cgi?id=1378895 Bug 1378895 depends on bug 1476237, which changed state.
Bug 1476237 Summary: Review Request: perl-Graphics-TIFF - Perl extension for the LibTIFF library https://bugzilla.redhat.com/show_bug.cgi?id=1476237
What |Removed |Added ---------------------------------------------------------------------------- Status|ON_QA |CLOSED Resolution|--- |ERRATA
https://bugzilla.redhat.com/show_bug.cgi?id=1378895
--- Comment #12 from Fedora Update System updates@fedoraproject.org --- perl-PDF-API2-2.033-3.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
perl-devel@lists.fedoraproject.org