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

Transparent PNG image converted to JPG is messed up #83

Open
purch-FE opened this issue Mar 6, 2017 · 8 comments
Open

Transparent PNG image converted to JPG is messed up #83

purch-FE opened this issue Mar 6, 2017 · 8 comments

Comments

@purch-FE
Copy link

purch-FE commented Mar 6, 2017

Hello Guys
PNG Images with transparent background converted to jpeg are messed up.
Is it possible to flatten the image before converting it to jpeg please :
See http://stackoverflow.com/questions/2322750/replace-transparency-in-png-images-with-white-background
Basically doing the equivalent of
convert -flatten img1.png img1-white.png

@red1
Copy link

red1 commented Mar 6, 2017

+1

@djgxp
Copy link

djgxp commented Mar 6, 2017

It would be very helpful, thanks for opening this issue.

@purch-FE
Copy link
Author

Any news on this please ?

@purch-FE
Copy link
Author

Could anyone look at this issue please ?

@tmorehouse
Copy link

If you know the dimensions of the PNG image, you can place it on a canvas that is the same height & width, which has a background color of #ffffff.

But ideally it would be nice to be able to flatten automatically onto a white background, without the need to use the canvas option.

@purch-FE
Copy link
Author

How can we do that using a small light parametters ? using cw,ch and cc ?
I agree that would be nice if it could be done automatically and people can still override the color they would want.

@purch-FE
Copy link
Author

purch-FE commented Oct 2, 2017

Any help there, please ?

@cubicdaiya
Copy link
Owner

ngx_small_light can receive parameter such as cw,ch,cc for filling background color. But automatical flatten processing is not supported yet. (Patches welcome.)

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

5 participants