jpeg-com-segment
以 jpeg 格式读取/写入 COM 段。
安装
$ npm install jpeg-com-segment
或者
$ npm install https://github.com/nbqx/jpeg-com-segment.git
用法
var fs = require ( 'fs' ) ,
com = require ( 'jpeg-com-segment' ) ;
// read COM segment comment
fs . createReadStream ( __dirname + '/test/fixtures/with-comment.jpg' )
. pipe ( com . read ( ) )
. on ( 'data' , function ( data ) {
console . log ( d
评论0
最新资源