nodejs 处理图像模块
发布时间
阅读量:
阅读量
2 一种轻量级且具备跨平台特性的图像编解码工具 images,基于 Node.js 开发
npm 安装地址https://www.npmjs.com/package/node-images
var images = require("images");
images("input.jpg") //Load image from file
//加载图像文件
.size(400) //Geometric scaling the image to 400 pixels width
//等比缩放图像到400像素宽
.draw(images("logo.png"), 10, 10) //Drawn logo at coordinates (10,10)
//在(10,10)处绘制Logo
.save("output.jpg", {
全部评论 (0)
还没有任何评论哟~
