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

PNG or WEBP images with transparancy turn black upon conversion to jpeg #40

Closed
zehawki opened this issue Oct 8, 2020 · 4 comments
Closed

Comments

@zehawki
Copy link

zehawki commented Oct 8, 2020

Describe the bug
Any png or webp image which has a transparency layer, turns to black back when converted to jpeg

To Reproduce
Steps to reproduce the behavior:

  1. Take any png image eg http://www.pngmart.com/image/153441
  2. compressFormat = 'JPEG'

Expected behavior
Transparent back should preferably turn white. This is what photoshop does BTW.

@DickShern
Copy link

Is there any updates to this? I would prefer to export with a white background as well

@andresriveratoro
Copy link
Contributor

See #54

@jpnuma
Copy link

jpnuma commented Jun 15, 2021

Still waiting for author to merge this PR

@khanakia
Copy link

Any update below image turns to black on resize

switch (1)

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