diff --git a/README.md b/README.md index f481e02..4b6b6ea 100644 --- a/README.md +++ b/README.md @@ -2695,11 +2695,11 @@ from PIL import Image ``` ```python - = Image.new('', (width, height)) - = Image.open() - = .convert('') -.save() -.show() + = Image.new('', (width, height)) # Also: `color=`. + = Image.open() # Identifies format based on file contents. + = .convert('') # Converts image to the new mode. +.save() # Selects format based on the path extension. +.show() # Opens image in default preview app. ``` ```python diff --git a/index.html b/index.html index 4db03f2..65c5a07 100644 --- a/index.html +++ b/index.html @@ -2329,11 +2329,11 @@ right = [[0.1, 0.6from PIL import Image -
<Image> = Image.new('<mode>', (width, height))
-<Image> = Image.open(<path>)
-<Image> = <Image>.convert('<mode>')
-<Image>.save(<path>)
-<Image>.show()
+
<Image> = Image.new('<mode>', (width, height))  # Also: `color=<int/tuple>`.
+<Image> = Image.open(<path>)                    # Identifies format based on file contents.
+<Image> = <Image>.convert('<mode>')             # Converts image to the new mode.
+<Image>.save(<path>)                            # Selects format based on the path extension.
+<Image>.show()                                  # Opens image in default preview app.
 
<int/tuple> = <Image>.getpixel((x, y))          # Returns a pixel.
 <Image>.putpixel((x, y), <int/tuple>)           # Writes a pixel to the image.