Bug 692203 - try to repair non-grayscale JP2 softmasks
Summary: try to repair non-grayscale JP2 softmasks
Status: RESOLVED FIXED
Alias: None
Product: MuPDF
Classification: Unclassified
Component: mupdf (show other bugs)
Version: unspecified
Hardware: PC Windows 7
: P4 normal
Assignee: Tor Andersson
URL: http://code.google.com/p/sumatrapdf/i...
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-12 11:33 UTC by zeniko
Modified: 2013-02-28 11:36 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description zeniko 2011-05-12 11:33:58 UTC
http://brush.co.nz/hivemind-australia-jpeg2000.pdf contains three JP2 RGB softmasks that - when extracted - look suspiciously like grayscale softmasks that are just somehow wrongly classified as RGB. Adobe Reader seems to be able to make sense of these softmasks, so they should be repairable.
Comment 1 Robin Watts 2013-02-28 11:36:55 UTC
This is fixed in:

commit 2f8c9375dc0624aff0bac7f5efe4dcbee78453a4
Author: Robin Watts <robin.watts@artifex.com>
Date:   Wed Feb 27 19:01:41 2013 +0000

    Force colorspaces to match with JPX images.

    If the colorspace given in the dictionary of a JPX image differs from
    the colorspace given in the image itself, decode to the native image
    format, then convert.

    This goes a long way towards fixing "1439 - color softmask fails to
    draw jpx image.pdf" (aka hivemind.pdf). The lack of transfer function
    support hopefully explains the rest.

Thanks!