Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1ceb732

Browse files
committed
Image
1 parent d7d84eb commit 1ceb732

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2695,7 +2695,7 @@ from PIL import Image
26952695
```
26962696

26972697
```python
2698-
<Image> = Image.new('<mode>', (width, height)) # Also: `color=<int/tuple>`.
2698+
<Image> = Image.new('<mode>', (width, height)) # Also: `color=<int/tuple/str>`.
26992699
<Image> = Image.open(<path>) # Identifies format based on file contents.
27002700
<Image> = <Image>.convert('<mode>') # Converts image to the new mode.
27012701
<Image>.save(<path>) # Selects format based on the path extension.

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2329,7 +2329,7 @@
23292329
<span class="hljs-keyword">from</span> PIL <span class="hljs-keyword">import</span> Image
23302330
</code></pre></div>
23312331

2332-
<pre><code class="python language-python hljs">&lt;Image&gt; = Image.new(<span class="hljs-string">'&lt;mode&gt;'</span>, (width, height)) <span class="hljs-comment"># Also: `color=&lt;int/tuple&gt;`.</span>
2332+
<pre><code class="python language-python hljs">&lt;Image&gt; = Image.new(<span class="hljs-string">'&lt;mode&gt;'</span>, (width, height)) <span class="hljs-comment"># Also: `color=&lt;int/tuple/str&gt;`.</span>
23332333
&lt;Image&gt; = Image.open(&lt;path&gt;) <span class="hljs-comment"># Identifies format based on file contents.</span>
23342334
&lt;Image&gt; = &lt;Image&gt;.convert(<span class="hljs-string">'&lt;mode&gt;'</span>) <span class="hljs-comment"># Converts image to the new mode.</span>
23352335
&lt;Image&gt;.save(&lt;path&gt;) <span class="hljs-comment"># Selects format based on the path extension.</span>

0 commit comments

Comments
 (0)