diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 0cdfcc9a9..f8367a40c 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -1186,12 +1186,12 @@ class Image(object): """ Configures the image file loader so it returns a version of the image that as closely as possible matches the given mode and - size. For example, you can use this method to convert a color + size. For example, you can use this method to convert a color JPEG to greyscale while loading it, or to extract a 128x192 version from a PCD file. Note that this method modifies the :py:class:`~PIL.Image.Image` object - in place. If the image has already been loaded, this method has no + in place. If the image has already been loaded, this method has no effect. Note: This method is not implemented for most images. It is diff --git a/src/PIL/ImageFile.py b/src/PIL/ImageFile.py index 836e6318c..93f59d0fb 100644 --- a/src/PIL/ImageFile.py +++ b/src/PIL/ImageFile.py @@ -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 diff --git a/src/PIL/JpegImagePlugin.py b/src/PIL/JpegImagePlugin.py index 020b95219..2a96b169c 100644 --- a/src/PIL/JpegImagePlugin.py +++ b/src/PIL/JpegImagePlugin.py @@ -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