Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image.Paletted: Image type not supported #143

Open
ibrokemypie opened this issue Feb 28, 2018 · 3 comments
Open

image.Paletted: Image type not supported #143

ibrokemypie opened this issue Feb 28, 2018 · 3 comments

Comments

@ibrokemypie
Copy link

ibrokemypie commented Feb 28, 2018

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

@llgcode
Copy link
Owner

llgcode commented Mar 1, 2018

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

@llgcode llgcode self-assigned this Mar 1, 2018
@CamiloGarciaLaRotta
Copy link

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

@rushairer
Copy link

MARK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants