mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-15 03:46:28 +03:00
minor fixes related to draft
This commit is contained in:
parent
8a30d13537
commit
2d1482b400
|
@ -119,11 +119,6 @@ class ImageFile(Image.Image):
|
|||
if not self.mode or self.size[0] <= 0:
|
||||
raise SyntaxError("not identified by this driver")
|
||||
|
||||
def draft(self, mode, size):
|
||||
"""Set draft mode"""
|
||||
|
||||
pass
|
||||
|
||||
def get_format_mimetype(self):
|
||||
if self.custom_mimetype:
|
||||
return self.custom_mimetype
|
||||
|
|
|
@ -415,7 +415,7 @@ class JpegImageFile(ImageFile.ImageFile):
|
|||
return
|
||||
|
||||
d, e, o, a = self.tile[0]
|
||||
scale = 0
|
||||
scale = 1
|
||||
|
||||
if a[0] == "RGB" and mode in ["L", "YCbCr"]:
|
||||
self.mode = mode
|
||||
|
|
Loading…
Reference in New Issue
Block a user