Bug 1369984
Summary: | gscan2pdf v1.3.8 saves imported PDF pages as negative images | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | bob <redzilla.coralnut> | ||||||
Component: | gscan2pdf | Assignee: | Petr Pisar <ppisar> | ||||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
Severity: | unspecified | Docs Contact: | |||||||
Priority: | unspecified | ||||||||
Version: | 24 | CC: | bjohnson, ppisar, rakesh.pandit, sven | ||||||
Target Milestone: | --- | ||||||||
Target Release: | --- | ||||||||
Hardware: | Unspecified | ||||||||
OS: | Unspecified | ||||||||
URL: | https://sourceforge.net/p/gscan2pdf/bugs/231/ | ||||||||
Whiteboard: | |||||||||
Fixed In Version: | gscan2pdf-1.5.2-2.fc26 gscan2pdf-1.5.2-2.fc25 gscan2pdf-1.3.9-2.fc24 | Doc Type: | If docs needed, set a value | ||||||
Doc Text: | Story Points: | --- | |||||||
Clone Of: | Environment: | ||||||||
Last Closed: | 2016-10-10 17:46:01 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: | |||||||||
Bug Depends On: | 1378891, 1378895 | ||||||||
Bug Blocks: | |||||||||
Attachments: |
|
Description
bob
2016-08-25 01:47:21 UTC
Previous description has a typo. the last 2 paragraphs should read as follows: Okular is automatically used to display the newly created PDF file (I am using the KDE spin). When the PDF is opened, all pages appear as a negative image. ie: scanned pieces of paper that were imported from the old PDF, which should appear as black lettering on white background, actually appear as white lettering on black background, while the newly scanned pages appended to the document during the last scanning run appear properly as black type on white background. If this process is repeated, all of the imported images look fine during use of the program, and new images can be scanned. Everything looks normal during use of the program, but after a save, all of the pages imported from the old PDF are now rendered as negative images, and only those from the most recent scan event are rendered as positive images. Somehow during the save, the old images are having their B&W color scheme reversed. Created attachment 1193854 [details]
test case 1 - single page scanned and saved
test case 1 - single page scanned and saved
Created attachment 1193855 [details]
test case 2 - same document, another page scanned. old image reversal.
test case 2 shows what happens when an existing pdf is imported, a new page is scanned, and the document saved. the original document has it's image reversed when the new document is saved.
Thank you for the detailed description. I can reproduce it. I think it's caused by some change in other packages upgraded between Fedora 23 and 24. The simplest reproducer is importing a PDF and then saving it. So far I found one bug and one difference. When storing saving to PDF, gscan2pdf converts all pages from PNG into TIFF and the again from TIFF to TIFF and that writes the TIFF images into PDF. The difference is somewhere in the conversion between the PNG and the second TIFF. Fedora 23 produces 1bpp TIFF, while Fedora 24 produces 8bpp TIFF. The bug is PDF::API2 used for writing TIFF into PDF mishandles the 8bpp TIFF and produces a PDF with broken image. This happens on Fedora 23 and 24, but it's visible only on Fedora 23 as there is the 8bpp TIFF. s/visible only in Fedora 23/visible only on Fedora 24/. The difference is in converting 1bpp PNG into TIFF by Image::Magick. Fedora 23 produces 1bpp TIFF, Fedora 24 produces 8bpp TIFF. I applied an workaround until ImageMagick will be fixed. gscan2pdf-1.5.2-2.fc25 has been pushed to the Fedora 25 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-2016-14e8e1583d gscan2pdf-1.3.9-2.fc24 has been pushed to the Fedora 24 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-2016-6d7dcc529f gscan2pdf-1.5.2-2.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report. gscan2pdf-1.3.9-2.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report. |