mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-12 02:06:18 +03:00
Update src/PIL/Image.py
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
6d440ac995
commit
9517feccd9
|
@ -662,7 +662,7 @@ class Image:
|
||||||
:returns: JPEG version of the image as bytes
|
:returns: JPEG version of the image as bytes
|
||||||
"""
|
"""
|
||||||
try:
|
try:
|
||||||
self._repr_image("JPEG")
|
return self._repr_image("JPEG")
|
||||||
except Exception:
|
except Exception:
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user