aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2024-08-17 20:07:08 +0200
committervulonkaaz <7442677+vulonkaaz@users.noreply.github.com>2024-08-17 20:07:08 +0200
commite0f4f110c8887c266d8bfb676023b57ed510a886 (patch)
treec6d1ef61639320d4aa129557d745f206325f875e
parente8d4b6346aa314e26ddee395f5e432df776e2377 (diff)
fixed palette
-rw-r--r--palette.pngbin0 -> 107 bytes
-rw-r--r--themagicpipe/imageconverter.go2
2 files changed, 1 insertions, 1 deletions
diff --git a/palette.png b/palette.png
new file mode 100644
index 0000000..e24ad54
--- /dev/null
+++ b/palette.png
Binary files differ
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