mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-02-03 13:14:27 +03:00
Apply suggestions from code review
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
ccdce1791d
commit
46708099b1
|
@ -654,15 +654,13 @@ class Image:
|
|||
"""
|
||||
return self._repr_image("PNG")
|
||||
|
||||
def _repr_jpg_(self):
|
||||
def _repr_jpeg_(self):
|
||||
"""iPython display hook support for JPEG format.
|
||||
|
||||
:returns: jpg version of the image as bytes
|
||||
"""
|
||||
return self._repr_image("JPEG")
|
||||
|
||||
_repr_jpeg_ = _repr_jpg_
|
||||
|
||||
@property
|
||||
def __array_interface__(self):
|
||||
# numpy array interface support
|
||||
|
|
Loading…
Reference in New Issue
Block a user