[poppler] Poppler and 16 bit images, workaround or not?
Albert Astals Cid
aacid at kde.org
Sat Apr 12 16:32:20 PDT 2008
Hi, poppler is not prepared at all for 16 bits per component images,
everywhere it assumes a component of the color fits into a Guchar (8 bits).
You can see the consequences with the pdf present at
http://bugs.kde.org/show_bug.cgi?id=158165
I have attached a 5 line patch that "fools" poppler and makes it use the high
8 bits and discard the other 8.
This makes it "work" but it's obviously a workaround and not the real solution
and i have only this pdf using 16 bits per component and it's really a "test
document" not a real one.
So i'm hesitating if incorporating the patch (with comments explaining the
workaround) or not doing it.
Comments?
Albert
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug158165.patch
Type: text/x-diff
Size: 847 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20080413/bdf6fcf7/attachment.patch
More information about the poppler
mailing list