Summary: | pdftohtml converts images to garbled "solarized" jpegs | ||
---|---|---|---|
Product: | poppler | Reporter: | skierpage <info> |
Component: | pdftohtml | Assignee: | poppler-bugs <poppler-bugs> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | sdp |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
garbled-color image produced by pdftohtml
correct image produced by pdfimages first three pages of problem PDF Proposed simple patch |
Description
skierpage
2012-04-03 16:03:11 UTC
Created attachment 59457 [details]
correct image produced by pdfimages
Created attachment 59458 [details] first three pages of problem PDF pages 1-3 of http://www.swanyretail.com/SwanySkiCatalog_final-LO.pdf in case it goes away. *** Bug 35026 has been marked as a duplicate of this bug. *** Created attachment 83039 [details] [review] Proposed simple patch I tried to fix the problem and this patch resolves the issue for all my tested PDFs. This is my first patch I provide ever, so I hope it is okay to upload it here. Attaching the patch here is fine. Can you explain why the extra code? I mean, why we need to test that? Thank you for your response Albert. I can't really answer your question, only tell you where I got the code from. I took the extra code from pdfimages as it was said that utility works. You can see the same code in ImageOutputDev.cc on line 269 to 272. I don't really know what is behind GfxImageColorMap::getNumPixelComps(). I just found out that you provided the original fix for ImageOutputDev.cc (commit: 2df6d530) in January 2009. sigh copied code everywhere :-/ Ok, i've commited the change and will be in 0.24.1 FWIW I did not do the code, as the commit log says, i just brought it from xpdf Thanks for the investigation! |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.