From 5311cbec84df56d1b1761c4fd12fd25d1d0da4fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98yvind=20Kol=C3=A5s?= Date: Sun, 18 Feb 2024 00:20:03 +0100 Subject: [PATCH] app: increase color precision in indexed conversion The indexed conversion code was originally written for very low-memory systems, this makes the mapping it does quantized and noisy, for examples see issue #5159 this commit removes quality/memory use trade-offs, modern machines can take a 2-300mb temporary table allocation. --- app/core/gimpimage-convert-indexed.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/app/core/gimpimage-convert-indexed.c b/app/core/gimpimage-convert-indexed.c index c61ec15ad5..b96ad73f40 100644 --- a/app/core/gimpimage-convert-indexed.c +++ b/app/core/gimpimage-convert-indexed.c @@ -171,8 +171,8 @@ /* basic memory/quality tradeoff */ #define PRECISION_R 8 -#define PRECISION_G 6 -#define PRECISION_B 6 +#define PRECISION_G 8 +#define PRECISION_B 8 #define HIST_R_ELEMS (1<