diff options
Diffstat (limited to 'debian/patches/0001-Convert-to-RGB-before-saving-as-JPEG.patch')
-rw-r--r-- | debian/patches/0001-Convert-to-RGB-before-saving-as-JPEG.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/debian/patches/0001-Convert-to-RGB-before-saving-as-JPEG.patch b/debian/patches/0001-Convert-to-RGB-before-saving-as-JPEG.patch deleted file mode 100644 index 15a87f8..0000000 --- a/debian/patches/0001-Convert-to-RGB-before-saving-as-JPEG.patch +++ /dev/null @@ -1,27 +0,0 @@ -From 4f66550c14238b18dc95f2c40e8e9f1b704de675 Mon Sep 17 00:00:00 2001 -From: Andrew Shadura <andrewsh@debian.org> -Date: Sun, 3 Sep 2017 10:04:49 +0200 -Subject: [PATCH] Convert to RGB before saving as JPEG. - -Pillow 3.7 removes support for saving RGBA images as JPEG. ---- - pydenticon/__init__.py | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/pydenticon/__init__.py b/pydenticon/__init__.py -index 0edfdb0..f499988 100644 ---- a/pydenticon/__init__.py -+++ b/pydenticon/__init__.py -@@ -246,6 +246,9 @@ class Generator(object): - # Set-up a stream where image will be saved. - stream = BytesIO() - -+ if image_format.upper() == "JPEG": -+ image = image.convert(mode="RGB") -+ - # Save the image to stream. - try: - image.save(stream, format=image_format, optimize=True) --- -2.11.0 - |