mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-04 20:03:20 +03:00
simplify setting self._size
Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
parent
c0d04e8b34
commit
f9c69deaae
|
@ -361,13 +361,10 @@ class EpsImageFile(ImageFile.ImageFile):
|
||||||
raise OSError(msg)
|
raise OSError(msg)
|
||||||
|
|
||||||
# An "ImageData" size takes precedence over the "BoundingBox".
|
# An "ImageData" size takes precedence over the "BoundingBox".
|
||||||
if imagedata_size:
|
self._size = imagedata_size or (
|
||||||
self._size = imagedata_size
|
bounding_box[2] - bounding_box[0],
|
||||||
else:
|
bounding_box[3] - bounding_box[1],
|
||||||
self._size = (
|
)
|
||||||
bounding_box[2] - bounding_box[0],
|
|
||||||
bounding_box[3] - bounding_box[1],
|
|
||||||
)
|
|
||||||
|
|
||||||
self.tile = [
|
self.tile = [
|
||||||
ImageFile._Tile("eps", (0, 0) + self.size, offset, (length, bounding_box))
|
ImageFile._Tile("eps", (0, 0) + self.size, offset, (length, bounding_box))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user