gulp-imageisux
gulp-imageisux copied to clipboard
智图gulp插件
总是报错这一句:The data returned has error! The file name is:1.jpg 然后图片可以输出再指定的文件夹,但是不会被压缩,而且是原图。。。
是自研的算法么?
压缩效果感觉和开源的一些技术方案很类似,有很多图片也是压缩不了的。目前综合来说效果最好的还是tinypng
`./public/Image/**/sprite.png` 类似这样的`gulp.src`输入方式,最终只在`./public/Image`文件夹下生成。 如果通过glob获取路径,循环生成不同路径分别处理,则`index.js`下定义的全局变量会被后者覆盖。 `// global var _abspath; var enableWebp; var file_dirname;`
你好,最近好像gulp的压缩没反应,是什么原因呢,之前还可以的,什么都没改,就改了一下图片文件夹的路径
智图插件下周重新开放,如果需要,请用在线版本zhitu.isux.us 同时敬请关注window客户端版本的上线~~
之前是可以正常使用的,但是今天回来使用提示的全是这种错误。
``` [17:06:01] [error] Format json data err, the filename is:travelguild_kanbierenhai.png [17:06:01] [error] Format json data err, the filename is:bg_details_default.png [17:06:01] [error] Format json data err, the filename is:slide_default.png [17:06:01] [error]...
[16:59:33] Using gulpfile /deploy/gulpImgmin/gulpfile.js [16:59:33] Starting 'imageisux'... [16:59:33] Finished 'imageisux' after 130 ms [16:59:34] [error] Format json data err, the filename is:56d585970d004dd7231cfec2.png
如题,原本images目录下有N个文件夹,压缩完的图片全混在一起了?