mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-06-15 10:33:06 +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")
|
return self._repr_image("PNG")
|
||||||
|
|
||||||
def _repr_jpg_(self):
|
def _repr_jpeg_(self):
|
||||||
"""iPython display hook support for JPEG format.
|
"""iPython display hook support for JPEG format.
|
||||||
|
|
||||||
:returns: jpg version of the image as bytes
|
:returns: jpg version of the image as bytes
|
||||||
"""
|
"""
|
||||||
return self._repr_image("JPEG")
|
return self._repr_image("JPEG")
|
||||||
|
|
||||||
_repr_jpeg_ = _repr_jpg_
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def __array_interface__(self):
|
def __array_interface__(self):
|
||||||
# numpy array interface support
|
# numpy array interface support
|
||||||
|
|
Loading…
Reference in New Issue
Block a user