Bug 45264 - some b/w images are inverted when extracted with pdfimages
Summary: some b/w images are inverted when extracted with pdfimages
Status: RESOLVED NOTABUG
Alias: None
Product: poppler
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: poppler-bugs
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-26 03:36 UTC by Poncho
Modified: 2012-01-26 09:45 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
testcase pdf file (616.44 KB, application/pdf)
2012-01-26 03:36 UTC, Poncho
Details
correct ppm file (189.59 KB, application/x-gzip)
2012-01-26 03:40 UTC, Poncho
Details
inverted jpg file (76.66 KB, image/jpeg)
2012-01-26 03:40 UTC, Poncho
Details

Description Poncho 2012-01-26 03:36:02 UTC
Created attachment 56172 [details]
testcase pdf file

If I extract the images from the attached file with pdfimages -j testcase.pdf the b/w images are inverted. Without the -j option, the extracted ppm files are displayed correctly.

The same happens when I print the pdf file with evince.

Portage 2.2.0_alpha84 (default/linux/amd64/10.0/desktop/gnome, gcc-4.6.2, glibc-2.13-r4, 3.2.1-gentoo-r2 x86_64)
app-text/poppler-0.18.2 was built with the following:
USE="cairo cxx introspection jpeg lcms (multilib) png tiff utils xpdf-headers -cjk -curl -debug -doc -jpeg2k -qt4"
Comment 1 Poncho 2012-01-26 03:40:22 UTC
Created attachment 56173 [details]
correct ppm file
Comment 2 Poncho 2012-01-26 03:40:54 UTC
Created attachment 56174 [details]
inverted jpg file
Comment 3 Albert Astals Cid 2012-01-26 09:45:04 UTC
There's nothing wrong in that behaviour the -j gives you the raw jpeg stream and the rag jpeg stream in that file is a black image, then the pdf has some commands to invert the color, ending up that if you "render" the image, you get it white blackground, but if you get the raw jpeg stream, the background there is black.


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.