image-tool
v1.0.2
Published
image convert tool. base64 blob, image upload compress exifdata handle.
Downloads
6
Readme
image-tool
提供上传图片的压缩,exif手机图片的方向矫正
使用方法
导入
import {ImageTool} from "image-tool";
默认压缩为800*800
file转base64
ImageTool.imgCompressAndOrientationAdjust(file).then(base64=>{
//base64
})
file转blob
ImageTool.imgCompressAndOrientationAdjust2Blob(file).then(blob=>{
//blob
})