Skip to content

Commit

Permalink
Fix issue with bigsurify by ensuring that output uses RGBA
Browse files Browse the repository at this point in the history
  • Loading branch information
fwcd committed Sep 2, 2024
1 parent 0e92697 commit ae0873f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion appicongen/imaging.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def generate_icon(
draw.rounded_rectangle((0, 0, rect_size, rect_size), fill=255, radius=corner_radius)
with input_img.copy() as base_img:
base_img.thumbnail((rect_size, rect_size), resample=RESAMPLER)
with Image.new(base_img.mode, (size, size)) as img: # pyright: ignore[reportGeneralTypeIssues]
with Image.new('RGBA', (size, size)) as img: # pyright: ignore[reportGeneralTypeIssues]
img.paste(base_img, (rect_offset, rect_offset), mask)
img.save(output_path)
else:
Expand Down

0 comments on commit ae0873f

Please sign in to comment.