forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: Add tests for jpeg2000 palette handling difference in PDF files
I created indexed-small.jp2 with this script: https://github.com/nico/hack/blob/d4772bae/make_palettized_jpeg2000.py I created jpeg2000-indexed-small.pdf with a local script that creates a PDF file embedding a jpeg2000 file, and then manually changed the indexed color space in the PDF to use 0x7f bytes for all bytes in the palette that were 0xff. Since PDF renderers are supposed to use the palette that's in the PDF file, not the one that's in the JPEG2000 data, this means that the image shows up darker in the PDF than when viewing the file standalone. (It'd also be possible to change the palette colors to something completely different. I just went with "make it slightly darker" since that seems less confusing.)
- Loading branch information
Showing
5 changed files
with
43 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.