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 is picky about specific formats #14

Open
captncraig opened this issue Oct 25, 2016 · 1 comment
Open

Image is picky about specific formats #14

captncraig opened this issue Oct 25, 2016 · 1 comment
Labels

Comments

@captncraig
Copy link

I tried running trayhost with an arbitrary png I found online. It panicked because it decoded to image.Palletted rather than image.NRGBA.

Perhaps the invert routine could be relaxed to work more generally.

Or maybe https://godoc.org/github.com/disintegration/imaging would be a good alternative. They have a simple invert function that works on any image.

@dmitshur
Copy link
Member

dmitshur commented Oct 26, 2016

Relevant code is here.

Hmm. Yeah, it's definitely limited right now.

Generally, I prefer to pull in as few dependencies as possible. But that one looks quite reasonable.

Let me think about this for a bit...

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

No branches or pull requests

2 participants