diff options
-rw-r--r-- | herrschwarzify.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/herrschwarzify.py b/herrschwarzify.py index dc0eb7c..9340a08 100644 --- a/herrschwarzify.py +++ b/herrschwarzify.py @@ -43,7 +43,7 @@ def upload(): if 'file' not in request.files or not request.files["file"].filename: return redirect(url_for('index')) image: FileStorage = request.files["file"] - converted_image = herrschwarzify(Image.open(image.stream)) + converted_image = herrschwarzify(Image.open(image.stream).convert(OVERLAY.mode)) name = random_name() converted_image.save(f"uploads/{name}") return redirect(url_for('image_resource', image=name)) |