From e0f4f110c8887c266d8bfb676023b57ed510a886 Mon Sep 17 00:00:00 2001 From: vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> Date: Sat, 17 Aug 2024 20:07:08 +0200 Subject: fixed palette --- themagicpipe/imageconverter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'themagicpipe') diff --git a/themagicpipe/imageconverter.go b/themagicpipe/imageconverter.go index e85a4e0..38f7eb1 100644 --- a/themagicpipe/imageconverter.go +++ b/themagicpipe/imageconverter.go @@ -20,7 +20,7 @@ func DataURLConverter(dataURL string) (string, error) { return "", err } - converter := exec.Command("convert", "-", "-background", "white", "-flatten", "-resize", "400x200!", "-colors", "8", "PNG8:-") + converter := exec.Command("convert", "-", "-background", "white", "-flatten", "-resize", "400x200!", "-remap", "palette.png", "PNG8:-") converter.Stdin = bytes.NewBuffer(imageRaw) var output []byte -- cgit v1.2.3