react-image-file-resizer:使用React调整本地图像的大小

时间:2021-04-30 16:05:40
【文件属性】:
文件名称:react-image-file-resizer:使用React调整本地图像的大小
文件大小:169KB
文件格式:ZIP
更新时间:2021-04-30 16:05:40
react image resize file JavaScript React图像文件大小调整器 react-image-file-resizer是一个可以重新缩放本地图像的react模块。 您可以更改图像的宽度,高度,格式,旋转度和质量。 它返回调整大小后的图像的新base64 URI或Blob。 URI可用作组件的源。 设置 安装软件包: npm i react-image-file-resizer 或者 yarn add react-image-file-resizer 用法 import Resizer from "react-image-file-resizer" ; Resizer . imageFileResizer ( file , // Is the file of the image which will resized. maxWidth , // Is the maxWidth of the resiz
【文件预览】:
react-image-file-resizer-master
----.gitignore(97B)
----.all-contributorsrc(2KB)
----package.json(2KB)
----package-lock.json(783KB)
----src()
--------index.js(5KB)
--------__tests__()
----webpack.config.js(608B)
----.travis.yml(49B)
----LICENSE(1KB)
----.DS_Store(6KB)
----.github()
--------ISSUE_TEMPLATE()
--------FUNDING.yml(18B)
----README.md(9KB)
----babel.rc(143B)
----index.d.ts(1KB)

网友评论