(self)
| 36 | assert_image_equal(im, im.transform(im.size, transform)) |
| 37 | |
| 38 | def test_info(self) -> None: |
| 39 | comment = b"File written by Adobe Photoshop\xa8 4.0" |
| 40 | |
| 41 | with Image.open("Tests/images/hopper.gif") as im: |
| 42 | assert im.info["comment"] == comment |
| 43 | |
| 44 | transform = ImageTransform.ExtentTransform((0, 0, 0, 0)) |
| 45 | new_im = im.transform((100, 100), transform) |
| 46 | assert new_im.info["comment"] == comment |
| 47 | |
| 48 | def test_palette(self) -> None: |
| 49 | with Image.open("Tests/images/hopper.gif") as im: |