diff options
| author | Tim Graham <timograham@gmail.com> | 2016-10-27 20:12:38 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-10-27 20:12:38 -0400 |
| commit | 6798014998db54389361c0a3fbab97f9b47656d2 (patch) | |
| tree | 759d34bffc92028f8df0d0fefba7165bb610ed7b /members | |
| parent | 75d49b3ffd1d7259670ae779bb9a117c26f6b859 (diff) | |
Fixed Pillow deprecation warning about alpha channel being discarded.
Diffstat (limited to 'members')
| -rw-r--r-- | members/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/members/utils.py b/members/utils.py index b81469dc..c167fb74 100644 --- a/members/utils.py +++ b/members/utils.py @@ -9,7 +9,7 @@ def get_temporary_image(): io = BytesIO() size = (200, 200) color = (255, 0, 0, 0) - image = Image.new('RGBA', size, color) + image = Image.new('RGB', size, color) image.save(io, format='JPEG') image_file = InMemoryUploadedFile(io, None, 'foo.jpg', 'jpeg', 1, None) image_file.seek(0) |
