laoshu133 / grunt-css-sprite

A grunt plugin to help front engineer creating css sprite.
MIT License
65 stars 29 forks source link

当png 是被压缩过的 png 8 alpha 格式的图片时,报错 #5

Closed qilei0529 closed 10 years ago

qilei0529 commented 10 years ago

RT

攒~

laoshu133 commented 10 years ago

请给出出错的图片和代码

qilei0529 commented 10 years ago

http://qilei.org/wp-content/uploads/2014/05/feed-reply-normal.png

try this

似乎对这图重新导出就可以了。

可能设计师 导出的方式不对

laoshu133 commented 10 years ago

确实是有问题,不过是由于图像处理组件不完善的引起的, pngsmith 提示 “Unsupported interlace method”, gm 提示

{ [Error: ENOENT, open '../test/slice/feed-reply-normal.png']
     errno: 34,
     code: 'ENOENT',
     path: '../test/slice/feed-reply-normal.png' } }

可以考虑重新导出图片