image-conversion icon indicating copy to clipboard operation
image-conversion copied to clipboard

透明图片的背景会被改为黑色

Open gzg1023 opened this issue 4 years ago • 0 comments

png透明图片的背景会被改为黑色,有解决办法吗

用这种会变成黑色 imageConversion.compress(file,0.8)

用这种不会变色,但是图片也没有压缩效果 imageConversion.compress(file,{ quality: 0.8, type: "image/png", scale: 1, })

gzg1023 avatar Jan 22 '21 06:01 gzg1023