diff options
author | Ken Sharp <ken.sharp@artifex.com> | 2017-10-02 16:32:25 +0100 |
---|---|---|
committer | Chris Liddell <chris.liddell@artifex.com> | 2017-10-03 08:42:11 +0100 |
commit | 5751e508f72238c1fcaad1a4c284aa875542dd70 (patch) | |
tree | 18ba7d1806e664a939609f6397a6f4b9c1a4d00c | |
parent | 3c2974bcd2e638be13c0ec814342a1a35ca0872b (diff) | |
download | ghostpdl-5751e508f72238c1fcaad1a4c284aa875542dd70.tar.gz |
PDF interpreter - fix default /Decode for Lab images
When we get an image with no /Decode array we create a default one for
it by looking at the image colour space.
For Lab we use the /Range array, but unfortunately this only covers the
a and b channels, not the L. However, L always ranges from 0 - 100 so
here we just pull the Range array apart, add in that range, and create
a new array for the /Decode.
-rw-r--r-- | Resource/Init/pdf_draw.ps | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Resource/Init/pdf_draw.ps b/Resource/Init/pdf_draw.ps index 2443bd1fa..68a56a367 100644 --- a/Resource/Init/pdf_draw.ps +++ b/Resource/Init/pdf_draw.ps @@ -1418,7 +1418,7 @@ end /CIEBasedABC { 1 get /RangeABC knownoget not { //01_3 } if } bind /CalGray { pop //01_1 } bind /CalRGB { pop //01_3 } bind - /Lab { 1 get /Range knownoget not { [-100 100 -100 100] } if } bind + /Lab { 1 get /Range knownoget not { [-100 100 -100 100] } {aload pop 0 100 6 2 roll 6 array astore}ifelse } bind /ICCBased { 1 oget dup /Range knownoget { exch pop |