im:用于 Node.JS 的基于 Stream 的 ImageMagick 包装器

时间:2021-06-08 09:48:59
【文件属性】:
文件名称:im:用于 Node.JS 的基于 Stream 的 ImageMagick 包装器
文件大小:64KB
文件格式:ZIP
更新时间:2021-06-08 09:48:59
JavaScript 我是 的基于 Stream 的包装器。 安装 $ npm install im 用法 // resizer.js var im = require ( 'im' ) ; im ( process . stdin ) . resize ( process . argv [ 2 ] ) . convert ( process . stdout ) $ curl http://placekitten.com/500/500 | node resizer.js 200x200 > 200.png 测试 $ git clone https://github.com/publicclass/im.git $ cd im $ npm i $ npm test 然后打开test/output目录并确保结果正确。 注意:要测试上传到 S3,必须设置环境变量: S3_KEY 、 S3_SEC
【文件预览】:
im-master
----.gitignore(17B)
----package.json(707B)
----History.md(2KB)
----.travis.yml(80B)
----index.js(38B)
----README.md(2KB)
----lib()
--------ident.js(5KB)
--------im.js(10KB)
----.npmignore(11B)
----test()
--------test-ident.js(3KB)
--------400.jpg(45KB)
--------test-im.js(7KB)
--------fixtures()

网友评论