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

Convert PNG with alpha to JPG assumes black background #33

Open
lasconic opened this issue Dec 27, 2016 · 1 comment
Open

Convert PNG with alpha to JPG assumes black background #33

lasconic opened this issue Dec 27, 2016 · 1 comment

Comments

@lasconic
Copy link
Contributor

Trying to convert the following image to JPG will send back a completely black image.
score_0 1

I'm tempted to add something like the following in image.js. Any advice?

if (image.outputFormat === 'jpeg') {
      r.background('#FFFFFF').flatten();
    }
lasconic added a commit to musescore/image-resizer that referenced this issue Dec 27, 2016
@teohhanhui
Copy link
Contributor

I think the background color should be included as a modifier.

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

2 participants