Skip to content

Commit 2ecd69f

Browse files
authored
Fix: Use fixed PNG palette (#14)
1 parent ed09a1e commit 2ecd69f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

wavey/__main__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def savefig(path: Path) -> None:
6060
plt.savefig(bts, format="png")
6161

6262
with PIL.Image.open(bts) as img:
63-
img2 = img.convert("RGB").convert("P", palette=PIL.Image.Palette.ADAPTIVE)
63+
img2 = img.convert("RGB").convert("P", palette=PIL.Image.Palette.WEB)
6464
img2.save(path, format="png")
6565

6666

0 commit comments

Comments
 (0)