draw2d icon indicating copy to clipboard operation
draw2d copied to clipboard

image.Paletted: Image type not supported

Open ibrokemypie opened this issue 6 years ago • 3 comments

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

ibrokemypie avatar Feb 28 '18 07:02 ibrokemypie

Hi @ibrokemypie, not supported right now. Please let me some time to see what to do . Laurent

llgcode avatar Mar 01 '18 15:03 llgcode

This would indeed be very helpful for GIF generation via stdlib image/gif

CamiloGarciaLaRotta avatar Mar 26 '19 01:03 CamiloGarciaLaRotta

MARK

rushairer avatar Aug 08 '23 08:08 rushairer