mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-27 17:54:32 +03:00
Merge pull request #7979 from radarhere/lab
This commit is contained in:
commit
a8f434f676
|
@ -304,7 +304,13 @@ def _cached_hopper(mode: str) -> Image.Image:
|
||||||
with pytest.warns(DeprecationWarning):
|
with pytest.warns(DeprecationWarning):
|
||||||
im = im.convert(mode)
|
im = im.convert(mode)
|
||||||
else:
|
else:
|
||||||
im = im.convert(mode)
|
try:
|
||||||
|
im = im.convert(mode)
|
||||||
|
except ImportError:
|
||||||
|
if mode == "LAB":
|
||||||
|
im = Image.open("Tests/images/hopper.Lab.tif")
|
||||||
|
else:
|
||||||
|
raise
|
||||||
return im
|
return im
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user