-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Closed
Labels
BugAny unexpected behavior, until confirmed feature.Any unexpected behavior, until confirmed feature.Palette
Description
What did you do?
Resize an image and add a black border
What did you expect to happen?
Image would be resized with a black border
What actually happened?
Image is distorted converted to grayscale, resized and border added
What are your OS, Python and Pillow versions?
- OS: Fedora 33
- Python: 3.8.6
- Pillow: 8.1.2
git clone https://github.com/hampusborgos/country-flags.git
cd country-flags/png1000pxfrom PIL import Image, ImageOps
i = Image.open('./bo.png')
i = i.resize((128,96))
# File saves correctly
i.save('./test.png')
i = ImageOps.expand(i, border=10, fill='black')
# File gets converted to grayscale and is distorted
i.save('./test.png')Metadata
Metadata
Assignees
Labels
BugAny unexpected behavior, until confirmed feature.Any unexpected behavior, until confirmed feature.Palette