mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-26 18:06:18 +03:00
the previous commit also fixes these big-endian failures
This commit is contained in:
parent
a921c01102
commit
671837840a
|
@ -856,7 +856,6 @@ class TestFileLibTiff(LibTiffTestCase):
|
||||||
with Image.open(infile) as im:
|
with Image.open(infile) as im:
|
||||||
assert_image_similar_tofile(im, "Tests/images/flower.jpg", 0.5)
|
assert_image_similar_tofile(im, "Tests/images/flower.jpg", 0.5)
|
||||||
|
|
||||||
@pytest.mark.xfail(is_big_endian(), reason="Fails on big-endian")
|
|
||||||
def test_strip_planar_rgb(self):
|
def test_strip_planar_rgb(self):
|
||||||
# gdal_translate -co TILED=no -co INTERLEAVE=BAND -co COMPRESS=LZW \
|
# gdal_translate -co TILED=no -co INTERLEAVE=BAND -co COMPRESS=LZW \
|
||||||
# tiff_strip_raw.tif tiff_strip_planar_lzw.tiff
|
# tiff_strip_raw.tif tiff_strip_planar_lzw.tiff
|
||||||
|
@ -864,7 +863,6 @@ class TestFileLibTiff(LibTiffTestCase):
|
||||||
with Image.open(infile) as im:
|
with Image.open(infile) as im:
|
||||||
assert_image_equal_tofile(im, "Tests/images/tiff_adobe_deflate.png")
|
assert_image_equal_tofile(im, "Tests/images/tiff_adobe_deflate.png")
|
||||||
|
|
||||||
@pytest.mark.xfail(is_big_endian(), reason="Fails on big-endian")
|
|
||||||
def test_tiled_planar_rgb(self):
|
def test_tiled_planar_rgb(self):
|
||||||
# gdal_translate -co TILED=yes -co INTERLEAVE=BAND -co COMPRESS=LZW \
|
# gdal_translate -co TILED=yes -co INTERLEAVE=BAND -co COMPRESS=LZW \
|
||||||
# tiff_tiled_raw.tif tiff_tiled_planar_lzw.tiff
|
# tiff_tiled_raw.tif tiff_tiled_planar_lzw.tiff
|
||||||
|
@ -872,21 +870,18 @@ class TestFileLibTiff(LibTiffTestCase):
|
||||||
with Image.open(infile) as im:
|
with Image.open(infile) as im:
|
||||||
assert_image_equal_tofile(im, "Tests/images/tiff_adobe_deflate.png")
|
assert_image_equal_tofile(im, "Tests/images/tiff_adobe_deflate.png")
|
||||||
|
|
||||||
@pytest.mark.xfail(is_big_endian(), reason="Fails on big-endian")
|
|
||||||
def test_tiled_planar_16bit_RGB(self):
|
def test_tiled_planar_16bit_RGB(self):
|
||||||
# gdal_translate -co TILED=yes -co INTERLEAVE=BAND -co COMPRESS=LZW \
|
# gdal_translate -co TILED=yes -co INTERLEAVE=BAND -co COMPRESS=LZW \
|
||||||
# tiff_16bit_RGB.tiff tiff_tiled_planar_16bit_RGB.tiff
|
# tiff_16bit_RGB.tiff tiff_tiled_planar_16bit_RGB.tiff
|
||||||
with Image.open("Tests/images/tiff_tiled_planar_16bit_RGB.tiff") as im:
|
with Image.open("Tests/images/tiff_tiled_planar_16bit_RGB.tiff") as im:
|
||||||
assert_image_equal_tofile(im, "Tests/images/tiff_16bit_RGB_target.png")
|
assert_image_equal_tofile(im, "Tests/images/tiff_16bit_RGB_target.png")
|
||||||
|
|
||||||
@pytest.mark.xfail(is_big_endian(), reason="Fails on big-endian")
|
|
||||||
def test_strip_planar_16bit_RGB(self):
|
def test_strip_planar_16bit_RGB(self):
|
||||||
# gdal_translate -co TILED=no -co INTERLEAVE=BAND -co COMPRESS=LZW \
|
# gdal_translate -co TILED=no -co INTERLEAVE=BAND -co COMPRESS=LZW \
|
||||||
# tiff_16bit_RGB.tiff tiff_strip_planar_16bit_RGB.tiff
|
# tiff_16bit_RGB.tiff tiff_strip_planar_16bit_RGB.tiff
|
||||||
with Image.open("Tests/images/tiff_strip_planar_16bit_RGB.tiff") as im:
|
with Image.open("Tests/images/tiff_strip_planar_16bit_RGB.tiff") as im:
|
||||||
assert_image_equal_tofile(im, "Tests/images/tiff_16bit_RGB_target.png")
|
assert_image_equal_tofile(im, "Tests/images/tiff_16bit_RGB_target.png")
|
||||||
|
|
||||||
@pytest.mark.xfail(is_big_endian(), reason="Fails on big-endian")
|
|
||||||
def test_tiled_planar_16bit_RGBa(self):
|
def test_tiled_planar_16bit_RGBa(self):
|
||||||
# gdal_translate -co TILED=yes \
|
# gdal_translate -co TILED=yes \
|
||||||
# -co INTERLEAVE=BAND -co COMPRESS=LZW -co ALPHA=PREMULTIPLIED \
|
# -co INTERLEAVE=BAND -co COMPRESS=LZW -co ALPHA=PREMULTIPLIED \
|
||||||
|
@ -894,7 +889,6 @@ class TestFileLibTiff(LibTiffTestCase):
|
||||||
with Image.open("Tests/images/tiff_tiled_planar_16bit_RGBa.tiff") as im:
|
with Image.open("Tests/images/tiff_tiled_planar_16bit_RGBa.tiff") as im:
|
||||||
assert_image_equal_tofile(im, "Tests/images/tiff_16bit_RGBa_target.png")
|
assert_image_equal_tofile(im, "Tests/images/tiff_16bit_RGBa_target.png")
|
||||||
|
|
||||||
@pytest.mark.xfail(is_big_endian(), reason="Fails on big-endian")
|
|
||||||
def test_strip_planar_16bit_RGBa(self):
|
def test_strip_planar_16bit_RGBa(self):
|
||||||
# gdal_translate -co TILED=no \
|
# gdal_translate -co TILED=no \
|
||||||
# -co INTERLEAVE=BAND -co COMPRESS=LZW -co ALPHA=PREMULTIPLIED \
|
# -co INTERLEAVE=BAND -co COMPRESS=LZW -co ALPHA=PREMULTIPLIED \
|
||||||
|
|
Loading…
Reference in New Issue
Block a user