CronShot 中间件 cronshot-imagemagick
- 授权协议: MIT
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/yahoo/cronshot-imagemagick
- 官方下载: https://github.com/yahoo/cronshot-imagemagick
软件介绍
cronshot-imagemagick 是 cronshot 中间件,通过 gm 来操作和保存 ImageMagick 处理的图片。
安装
npm install cronshot-imagemagick
示例
var cronshot = require('cronshot'),
middleware = {
'imagemagick': require('cronshot-imagemagick')
};
// Image Magick Example
// --------------------
// Takes a screenshot of sports.yahoo.com,
// and converts the screenshot to be a transparent image using Image Magick
// Image Magick example
cronshot.startCapturing({
// The webpage URL that you would like to take a screenshot of
'url': 'http://sports.yahoo.com',
// The local path where you would like to save the image
'path': __dirname,
// Only takes one screenshot
'cronPattern': false,
// What middleware functions to use each time a screenshot is taken
'saveMiddleware': [{
// Function that does all the Image Magick stuff
'middleware': middleware.imagemagick,
'options': {
'gmCommands': [{
'method': 'trim',
'args': []
}, {
'method': 'transparent',
'args': ['#FFFFFF']
}]
}
}]
}, function(err) {
// optional callback function once all screenshots have been taken
});深度解析淘宝运营
刘涛 / 电子工业出版社 / 2015-9-1 / 49.00元
淘宝运营,仅有知识是不够的,还需要有系统的运营思路。为帮助广大电商从业者以及众多中小卖家更好地运营店铺,《深度解析淘宝运营》全面阐述了整个店铺运营的重点环节,包括淘宝搜索规则、打造爆款、店铺规划、客户服务、直通车、钻石展位、数据分析等内容。具体操作步骤翔实,并且结合笔者的实际操作经验,将各个环节最本质的一面透彻展现给读者,结合理论与实战,尽可能向读者展示一个最真实的运营核心。《深度解析淘宝运营》没......一起来看看 《深度解析淘宝运营》 这本书的介绍吧!
