nl_tokens: 读取单个图片的内容和信息
pl_tokens: function readImageInfo ( fileName , callback ) { fileName = path . join ( spriteConfig . workspace , fileName ) ; fs . createReadStream ( fileName ) . pipe ( new PNG ( ) ) . on ( 'parsed' , function ( ) { var imageInfo = { image : this , width : this . width , height : this . height } ; getImageSize ( this , function ( size ) { imageInfo . size = size ; callback ( imageInfo ) ; } ) ; } ) . on ( 'error' , function ( e ) { info ( '>>Skip: ' + e . <mask> + ' of "' + fileName + '"' ) ; callback ( null ) ; } ) ; }