mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-11 17:56: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
|
||||
"""
|
||||
try:
|
||||
self._repr_image("JPEG")
|
||||
return self._repr_image("JPEG")
|
||||
except Exception:
|
||||
return None
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user