html rice preview

This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-09-26 02:55:16 +02:00
parent f5016976ab
commit b6d1b38ad9
3 changed files with 107 additions and 32 deletions

View File

@@ -116,10 +116,7 @@ def extract_colors(
return Palette(colors)
if __name__ == "__main__":
try:
img = sys.argv[1]
except IndexError:
img = "/home/nx2/Pictures/wallpapers/absolute-cinema-acid.png"
img = sys.argv[1]
palette = extract_colors(image=img, palette_size=3)