mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-05-03 15:33:41 +03:00
removing libtiff compression based decoder names
This commit is contained in:
parent
44e4d6b49d
commit
3d31bf394b
|
@ -4,7 +4,7 @@ from PIL import Image, TiffImagePlugin
|
||||||
|
|
||||||
codecs = dir(Image.core)
|
codecs = dir(Image.core)
|
||||||
|
|
||||||
if "group4_encoder" not in codecs or "group4_decoder" not in codecs:
|
if "libtiff_encoder" not in codecs or "libtiff_decoder" not in codecs:
|
||||||
skip("tiff support not available")
|
skip("tiff support not available")
|
||||||
|
|
||||||
def _assert_noerr(im):
|
def _assert_noerr(im):
|
||||||
|
|
|
@ -6,7 +6,7 @@ from test_file_libtiff import _assert_noerr
|
||||||
|
|
||||||
codecs = dir(Image.core)
|
codecs = dir(Image.core)
|
||||||
|
|
||||||
if "group4_encoder" not in codecs or "group4_decoder" not in codecs:
|
if "libtiff_encoder" not in codecs or "libtiff_decoder" not in codecs:
|
||||||
skip("tiff support not available")
|
skip("tiff support not available")
|
||||||
|
|
||||||
""" The small lena image was failing on open in the libtiff
|
""" The small lena image was failing on open in the libtiff
|
||||||
|
|
21
_imaging.c
21
_imaging.c
|
@ -3317,28 +3317,7 @@ static PyMethodDef functions[] = {
|
||||||
{"tiff_lzw_decoder", (PyCFunction)PyImaging_TiffLzwDecoderNew, 1},
|
{"tiff_lzw_decoder", (PyCFunction)PyImaging_TiffLzwDecoderNew, 1},
|
||||||
#ifdef HAVE_LIBTIFF
|
#ifdef HAVE_LIBTIFF
|
||||||
{"libtiff_decoder", (PyCFunction)PyImaging_LibTiffDecoderNew, 1},
|
{"libtiff_decoder", (PyCFunction)PyImaging_LibTiffDecoderNew, 1},
|
||||||
{"tiff_ccitt_decoder", (PyCFunction)PyImaging_LibTiffDecoderNew, 1},
|
|
||||||
{"group3_decoder", (PyCFunction)PyImaging_LibTiffDecoderNew, 1},
|
|
||||||
{"group4_decoder", (PyCFunction)PyImaging_LibTiffDecoderNew, 1},
|
|
||||||
{"tiff_jpeg_decoder", (PyCFunction)PyImaging_LibTiffDecoderNew, 1},
|
|
||||||
{"tiff_adobe_deflate_decoder", (PyCFunction)PyImaging_LibTiffDecoderNew, 1},
|
|
||||||
{"tiff_thunderscan_decoder", (PyCFunction)PyImaging_LibTiffDecoderNew, 1},
|
|
||||||
{"tiff_deflate_decoder", (PyCFunction)PyImaging_LibTiffDecoderNew, 1},
|
|
||||||
{"tiff_sgilog_decoder", (PyCFunction)PyImaging_LibTiffDecoderNew, 1},
|
|
||||||
{"tiff_sgilog24_decoder", (PyCFunction)PyImaging_LibTiffDecoderNew, 1},
|
|
||||||
{"tiff_raw_16_decoder", (PyCFunction)PyImaging_LibTiffDecoderNew, 1},
|
|
||||||
|
|
||||||
{"libtiff_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
|
{"libtiff_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
|
||||||
{"tiff_ccitt_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
|
|
||||||
{"group3_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
|
|
||||||
{"group4_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
|
|
||||||
{"tiff_jpeg_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
|
|
||||||
{"tiff_adobe_deflate_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
|
|
||||||
{"tiff_thunderscan_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
|
|
||||||
{"tiff_deflate_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
|
|
||||||
{"tiff_sgilog_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
|
|
||||||
{"tiff_sgilog24_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
|
|
||||||
{"tiff_raw_16_encoder", (PyCFunction)PyImaging_LibTiffEncoderNew, 1},
|
|
||||||
#endif
|
#endif
|
||||||
{"msp_decoder", (PyCFunction)PyImaging_MspDecoderNew, 1},
|
{"msp_decoder", (PyCFunction)PyImaging_MspDecoderNew, 1},
|
||||||
{"packbits_decoder", (PyCFunction)PyImaging_PackbitsDecoderNew, 1},
|
{"packbits_decoder", (PyCFunction)PyImaging_PackbitsDecoderNew, 1},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user