diff options
| author | Roman Gräf <romangraef@loves.dicksinhisan.us> | 2020-11-29 23:12:29 +0100 |
|---|---|---|
| committer | Roman Gräf <romangraef@loves.dicksinhisan.us> | 2020-11-29 23:12:29 +0100 |
| commit | aa2521a9184b5c614971d3dc5987c9cd463157c6 (patch) | |
| tree | 68798670ba55b489459155cfb85d699887735fec | |
| parent | 2b6cbdbf2dfe71e906367a88bf1d0c6c657e50d5 (diff) | |
| download | herrschwarzify-aa2521a9184b5c614971d3dc5987c9cd463157c6.tar.gz herrschwarzify-aa2521a9184b5c614971d3dc5987c9cd463157c6.tar.bz2 herrschwarzify-aa2521a9184b5c614971d3dc5987c9cd463157c6.zip | |
allow jpeg uploads
| -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)) |
