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

Custom background color for PNGs with transparency #38

Open
AdamHolwerda opened this issue Mar 14, 2012 · 5 comments
Open

Custom background color for PNGs with transparency #38

AdamHolwerda opened this issue Mar 14, 2012 · 5 comments

Comments

@AdamHolwerda
Copy link

The default background color is black.

Think if you could:

• Pick a color (HEX input should be fine, unless you want to add a picker).
• Select an already dragged-in image to use as a background (default behavior - stretch to fill behind the animated images).

Cheers.

@grayghostvisuals
Copy link
Contributor

So we have transparency now supported thanks to @forresto, but maybe he might know of a way to let us add bg colors?

@forresto
Copy link
Contributor

When the worker is started it takes matte and transparent colors as [r,g,b] arrays.

If transparent is false then matte will fill in the whole background.

Shouldn't be too hard to wire those to pickers. Anybody got a good widget?

If you want to add text, background images, and other more advanced things with GIFs check out my meemoo.org project.

@grayghostvisuals
Copy link
Contributor

Wow! that's pretty crazy stuff you got goin' on. How about we try for the color background picker first O_o
What type of widget do you need or are you thinking of? Maybe we can build it ourselves. How about something like this slider that @zakkain did for HSL using range sliders (which are also now supported in firefox)?http://codepen.io/zakkain/pen/ybiIg

@bgrins
Copy link
Member

bgrins commented May 13, 2013

Any thoughts about using a colorpicker? I made the colorpicker in use in devtools, and also have it released as a jQuery plugin: http://bgrins.github.io/spectrum/. Should be easy to integrate with and flexible for theming. Would also have potential for other cool stuff, like populating the palette list with colors found in the images or something.

@forresto
Copy link
Contributor

@bgrins that looks good to me. I have been looking for one for my
project... I'll try it out there.

If somebody gets the pickers in the m.e.a.g. layout then I can help make
sure they work with the encoder.

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

No branches or pull requests

4 participants