Pdf.js: ICC profiles support for images

Created on 1 Mar 2013  路  9Comments  路  Source: mozilla/pdf.js

Right now pdf.js ignores embedded color profiles of any kind.

Here's a test pdf that looks just fine with Windows Reader on Windows 8, but shows no support in PDF.js.

And yes, Firefox does work (same test, but as html: http://www.color.org/version4html.xalter)

4-image-conversion

Most helpful comment

Frankly it's a bit ridiculous that Firefox's PDF viewer (PDF.js) still lacks support for both v2 and v4 profiles in the year 2020. 馃槧 馃憥

All 9 comments

Details:
firefox 21.0a2 (2013-02-28)
pdf.js version 0.7.256
screenshot: icc_pdf

The HTML site shows version 2 support only in here (windows 7 x64, firefox aurora), is this something new to windows 8?

SumatraPDF doesn't support those profiles either, so I wonder how important the support really is?

ICCv4 is disabled by default in Firefox, you have to flip gfx.color_management.enablev4 to True

I don't know how important it is, but I couldn't find any relevant bug, so I made a new one with links to test cases.

Yeah it's okay, better to have a tracking bug. Worst case the devs would close as "won't fix", best case it gives some dev or contributor something to do ;P

I don't know if it works, but if it can help someone to implement ICC profiles, I found this:
https://formats.kaitai.io/icc_4/javascript.html
It seems to be CC0 license, it may be a start to begin ICC profiles support.

Frankly it's a bit ridiculous that Firefox's PDF viewer (PDF.js) still lacks support for both v2 and v4 profiles in the year 2020. 馃槧 馃憥

Seems that even Chrome doesn't support v4 profile.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

azetutu picture azetutu  路  4Comments

liuzhen2008 picture liuzhen2008  路  4Comments

PeterNerlich picture PeterNerlich  路  3Comments

sujit-baniya picture sujit-baniya  路  3Comments

patelsumit5192 picture patelsumit5192  路  3Comments