Update docs/handbook/tutorial.rst

Co-authored-by: Andrew Murray <3112309+radarhere@users.noreply.github.com>
This commit is contained in:
Jan-Hendrik Müller 2021-12-01 23:23:17 +01:00 committed by GitHub
parent 52ac725ae0
commit 21351c8982
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -417,7 +417,7 @@ This example uses PIL together with pathlib, in order to reduce the quality of a
from pathlib import Path
def compressImg(filepath, verbose=False):
def compressImg(filepath):
file = filepath.stem
with Image.open(filepath) as img:
if img.mode != 'RGB':