onurzorluer / react-image-file-resizer

Resize Local Images with React 🌄 🌅
MIT License
313 stars 41 forks source link

Update transparency color to white when compressed #54

Closed andresriveratoro closed 3 years ago

andresriveratoro commented 3 years ago

When compressing a file format that contains transparency to a file format that doesn't support transparency, the transparent background is returned as black.

This change will return transparent backgrounds as white.

onurzorluer commented 3 years ago

@all-contributors please add @andresriveratoro for code and maintenance

allcontributors[bot] commented 3 years ago

@onurzorluer

I've put up a pull request to add @andresriveratoro! :tada:

firflant commented 1 year ago

Since this commit, the improvement is reverted and background color is black again: https://github.com/onurzorluer/react-image-file-resizer/commit/34d7a399ddcfbb90e6e4c7b2417ef5828619285b

Fortunately there is version react-image-file-resizer@0.4.6 , which i prefer to use.