draw2d
draw2d copied to clipboard
image.Paletted: Image type not supported
Hey, when trying to use
dest := image.NewPaletted(bounds, palette.Plan9)
canvas := draw2dimg.NewGraphicContext(dest)
I crash with
panic: Image type not supported
goroutine 70 [running]:
github.com/llgcode/draw2d/draw2dimg.NewGraphicContext(0x7f18c0, 0xc420096660, 0x10000)
/home/conor/thingo/go/src/github.com/llgcode/draw2d/draw2dimg/ftgc.go:63 +0xe9
Am I doing something wrong or are paletted images just not supported? If the latter, is there any plan for support in the future? Creating an RGBA image then converting it to paletted takes a big toll on performance
Hi @ibrokemypie, not supported right now. Please let me some time to see what to do . Laurent
This would indeed be very helpful for GIF generation via stdlib image/gif
MARK