image-conversion
image-conversion copied to clipboard
A simple and easy-to-use JS image convert tools, which can specify size to compress the image.
Bumps [elliptic](https://github.com/indutny/elliptic) from 6.5.3 to 6.5.4. Commits 43ac7f2 6.5.4 f4bc72b package: bump deps 441b742 ec: validate that a point before deriving keys e71b2d9 lib: relint using eslint 8421a01 build(deps): bump...
png透明图片的背景会被改为黑色,有解决办法吗 用这种会变成黑色 imageConversion.compress(file,0.8) 用这种不会变色,但是图片也没有压缩效果 imageConversion.compress(file,{ quality: 0.8, type: "image/png", scale: 1, })
I was using the live site and it failed to convert any images (or change their dimensions, or compress them); I used a .jpg and a.png, image. I was using...
**Describe the bug** When gifs are compressed, they become static image of first frame only. ``` import { compress } from "image-conversion"; const compressed_gif = await compress(YOUR_GIF_FILE_HERE, { quality: 0.8,...
 上面的文件(约5MB),用类似下面的代码压缩失败(上传后发现没有压缩): ``` compressAccurately(file, { size: 1000, // _self.imageSizeLimits[_self.islIndex], //accuracy: 0.9, type: 'image/png' }).then(res => { let blobUrl = URL.createObjectURL(res) this.imagesTemp.push(blobUrl) this.extensionDict[blobUrl] = 'png' // extension // 压缩后上传丢失后缀 }) ```...
Thank for your contribution. The package has problem on IE 11. How can I solve this? 

**测试环境:** 浏览器:Chrome 80 具体浏览器版本:Chrome/ 80.0.3987.132 系统:win10 **复现步骤如下:** 打开 [测试页面](https://demo.wangyulue.com/image-conversion/) 上传gif[图片](https://climber.oss-cn-beijing.aliyuncs.com/tenor.gif) size 填写50 开始压缩 gif图片压缩后变成静态图。
**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll...