-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PCD decoder overruns the shuffle buffer, Fixes #568
- Loading branch information
Showing
3 changed files
with
23 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
from helper import unittest, PillowTestCase, hopper | ||
from PIL import Image | ||
|
||
class TestFilePcd(PillowTestCase): | ||
|
||
def test_load_raw(self): | ||
im = Image.open('Tests/images/hopper.pcd') | ||
im.load() # should not segfault. | ||
|
||
# Note that this image was created with a resized hopper | ||
# image, which was then converted to pcd with imagemagick | ||
# and the colors are wonky in Pillow. It's unclear if this | ||
# is a pillow or a convert issue, as other images not generated | ||
# from convert look find on pillow and not imagemagick. | ||
|
||
#target = hopper().resize((768,512)) | ||
#self.assert_image_similar(im, target, 10) | ||
|
||
|
||
if __name__ == '__main__': | ||
unittest.main() |
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