Replaced test image to avoid copyrighted color space #6062
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
In #4591, there is a report that
The purpose of this image is to be an ICNS file containing JPEG2000 images. The only other times the relevant part of Pillow is hit by our test suite is in
test_icns_decompression_bomb
andtest_fuzzers.py
.So I opened up another of our test images, pillow.icns, modified Pillow to save it with JPEG2000 images inside instead of PNG, and thus have a replacement file for pillow3.icns. This will still contain JPEG2000 images, but without the text "Copyright (c) 1998 Hewlett-Packard Company".