From f9c060a497a0a3fdb96591c475f55651d05d65a8 Mon Sep 17 00:00:00 2001 From: end-4 <97237370+end-4@users.noreply.github.com> Date: Thu, 28 Mar 2024 20:56:12 +0700 Subject: [PATCH] fix #366 --- .../ags/scripts/color_generation/generate_colors_material.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/ags/scripts/color_generation/generate_colors_material.py b/.config/ags/scripts/color_generation/generate_colors_material.py index 578347b5..ea4cfaa9 100755 --- a/.config/ags/scripts/color_generation/generate_colors_material.py +++ b/.config/ags/scripts/color_generation/generate_colors_material.py @@ -46,7 +46,7 @@ if args.path is not None: wsize_new, hsize_new = calculate_optimal_size(wsize, hsize, args.size) if wsize_new < wsize or hsize_new < hsize: image = image.resize((wsize_new, hsize_new), Image.Resampling.BICUBIC) - colors = QuantizeCelebi(image.getdata(), 128) + colors = QuantizeCelebi(list(image.getdata()), 128) argb = Score.score(colors)[0] if args.cache is not None: