diff options
author | vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> | 2024-08-17 20:07:08 +0200 |
---|---|---|
committer | vulonkaaz <7442677+vulonkaaz@users.noreply.github.com> | 2024-08-17 20:07:08 +0200 |
commit | e0f4f110c8887c266d8bfb676023b57ed510a886 (patch) | |
tree | c6d1ef61639320d4aa129557d745f206325f875e | |
parent | e8d4b6346aa314e26ddee395f5e432df776e2377 (diff) |
fixed palette
-rw-r--r-- | palette.png | bin | 0 -> 107 bytes | |||
-rw-r--r-- | themagicpipe/imageconverter.go | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/palette.png b/palette.png Binary files differnew file mode 100644 index 0000000..e24ad54 --- /dev/null +++ b/palette.png 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 |