前端 Jcrop + 后端 Node.js 使用 jimp、
Jcrop & Node.js 图片裁剪
前端
使用 Jcrop 选择需要裁剪的图片,输出 x、y、w、h
。
接收前端图片信息和 x、y、w、h
, 使用 Jimp 或 sharp 裁剪图片。
npm install npm start # 访问 http://localhost:3000/ Node.js 操作
node sharp #or node jimp License
MIT © 2021 givebest
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。