mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-05 14:10:52 +03:00
hide tiff warnings
This commit is contained in:
parent
a130c45990
commit
df0e214d46
|
@ -78,6 +78,5 @@ def test_adobe_deflate_tiff():
|
||||||
|
|
||||||
assert_equal(im.mode, "RGB")
|
assert_equal(im.mode, "RGB")
|
||||||
assert_equal(im.size, (278, 374))
|
assert_equal(im.size, (278, 374))
|
||||||
assert_equal(im.tile, [('tiff_adobe_deflate', (0, 0, 278, 374), 0,
|
assert_equal(im.tile[0][:3], ('tiff_adobe_deflate', (0, 0, 278, 374), 0))
|
||||||
('RGB', 'tiff_adobe_deflate', 4))])
|
|
||||||
assert_no_exception(lambda: im.load())
|
assert_no_exception(lambda: im.load())
|
||||||
|
|
|
@ -197,6 +197,10 @@ int ImagingLibTiffDecode(Imaging im, ImagingCodecState state, UINT8* buffer, int
|
||||||
clientstate->flrealloc = 0;
|
clientstate->flrealloc = 0;
|
||||||
|
|
||||||
dump_state(clientstate);
|
dump_state(clientstate);
|
||||||
|
|
||||||
|
TIFFSetWarningHandler(NULL);
|
||||||
|
TIFFSetWarningHandlerExt(NULL);
|
||||||
|
|
||||||
if (clientstate->fp) {
|
if (clientstate->fp) {
|
||||||
TRACE(("Opening using fd: %d\n",clientstate->fp));
|
TRACE(("Opening using fd: %d\n",clientstate->fp));
|
||||||
lseek(clientstate->fp,0,SEEK_SET); // Sometimes, I get it set to the end.
|
lseek(clientstate->fp,0,SEEK_SET); // Sometimes, I get it set to the end.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user