[poppler] CMYK JPX image interpreted as RGB (with testcase + example images)
Harry Roberts
harry at midnight-labs.org
Wed Feb 6 22:22:37 PST 2013
Sorry about spamming list and not being helpful instead of putting stuff in
bugzilla.
https://bugs.freedesktop.org/show_bug.cgi?id=60383
This has sunk too much of my time today, but hey at least I've learned some
stuff along the way.
libopenjpeg doesn't support CMYK JPX images, neither does Poppler. I will
look into it, but I don't know how far I'll get.
On 6 February 2013 23:54, Leonard Rosenthol <lrosenth at adobe.com> wrote:
> Acrobat's Object Inspector reports this about the image:
>
> Filled Path: Image
>
> ColorSpace: Indexed ICCBasedCMYK, U.S. Web Coated (SWOP) v2
>
> Image Attributes
>
> size: 49 x 127 pixels (0.327 x 0.844 in)
>
> bits/pixel: 8
>
> resolution: horizontal 149.981 pixels/in vertical 150.415 pixels/in
>
> filters: JPEG2000
>
> Overprint=False OPM=1 ri=Relative Colorimetric
>
>
>
> From: Harry Roberts <harry at midnight-labs.org>
> Date: Wednesday, February 6, 2013 12:30 PM
> To: "poppler at lists.freedesktop.org" <poppler at lists.freedesktop.org>
> Subject: [poppler] CMYK JPX image interpreted as RGB (with testcase +
> example images)
>
> Hi Poppler folks,
>
> I encountered a weird bug with some images in a PDF. It seems like CMYK
> data is being interpreted as RGB data, or something similar to that - the
> pixel stride is off causing the image to be repeated multiple times.
>
> PDF Page file can be downloaded from: http://derp.ltd.uk/843-21307-16.pdf
>
> Example of problem image, extracted with pdfimages:
> http://i.imgur.com/YSTCKkb.jpg
> The image shows with `pdfimages` as:
> page num type width height color comp bpc enc interp object ID
> ---------------------------------------------------------------------
> 1 7 image 759 185 cmyk 4 8 jpx no 68 0
>
> I have tested 2 versions of Poppler with 2 versions of LCMS and exhibit
> the problem. Google Chrome also has similar problems.
>
> - Evince from Ubuntu 12.10 (Poppler 0.20.4-0ubuntu1.1 with LCMS2
> 2.2+git20110628-2ubuntu4) without openjpeg
> - pdftoppm - Poppler 0.22.0 + LCMS 1.19 (custom build) - without
> openjpeg
>
>
> Example page images:
>
> - Ghostscript: http://i.imgur.com/dfLLptb.jpg
> - Photoshop: http://i.imgur.com/BylwJWW.jpg
> - Poppler: http://i.imgur.com/8cderTo.jpg (shows buggy image)
>
> The PDF was processed using SmartCreate by QuadGraphics, combined by Adobe
> Acrobat 8.0... unsure of the original software used to create the
> individual files.
>
>
> On a related note I'm unable to build the current Poppler from git,
> otherwise I would've tested with it too. Getting link errors like:
> Linearization.cc:(.text+0x4dc): undefined reference to
> `error(ErrorCategory, long, char const*, ...)
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/poppler/attachments/20130207/e85523fe/attachment-0001.html>
More information about the poppler
mailing list