diff --git a/docs/handbook/tutorial.rst b/docs/handbook/tutorial.rst index f8ee0c413..895408b79 100644 --- a/docs/handbook/tutorial.rst +++ b/docs/handbook/tutorial.rst @@ -527,7 +527,7 @@ module. paths = Path(".").glob("*.png") for path in paths: - compress_image(path, filepath.stem + ".jpg") + compress_image(path, path.stem + ".jpg") Controlling the decoder