react-easy-crop icon indicating copy to clipboard operation
react-easy-crop copied to clipboard

How can I change the background color of the cropped image to transparent?

Open chuongvuoop2021 opened this issue 5 years ago • 5 comments

Describe the issue: Right now when I try to crop an image with transparent background, it would automatically change that background color to black, is there anyway I can change this? To Reproduce download an image with transparent background then use crop tool to crop it, the background will turn black. pngwing com

image Expected behavior the cropped image's background should have the same color with the original one

chuongvuoop2021 avatar Oct 29 '21 11:10 chuongvuoop2021

You should set the exported image to be a png in the crop image.js file. See https://github.com/ValentinH/react-easy-crop/issues/165#issuecomment-711417984

ValentinH avatar Oct 31 '21 07:10 ValentinH

You should set the exported image to be a png in the crop image.js file. See #165 (comment)

that worked, thank you very much!

chuongvuoop2021 avatar Nov 01 '21 08:11 chuongvuoop2021

You should set the exported image to be a png in the crop image.js file. See https://github.com/ricardo-ch/react-easy-crop/issues/165#issuecomment-711417984

im having the same issue, this link is not working anymore

ianWins2n avatar Aug 19 '22 05:08 ianWins2n

Here it is: https://github.com/ValentinH/react-easy-crop/issues/165#issuecomment-711417984

@ianWins2n

ValentinH avatar Aug 19 '22 06:08 ValentinH

Here it is: #165 (comment)

@ianWins2n

thanks

ianWins2n avatar Aug 19 '22 06:08 ianWins2n