firetix / gulp-image-optimization

Minify PNG, JPEG and GIF images. this is based on https://github.com/sindresorhus/gulp-imagemin with stream-limit implementation
23 stars 3 forks source link

Possible to get a summary? #3

Open Jakobud opened 9 years ago

Jakobud commented 9 years ago

Is it possible after the imageop() has run, to get a summary of all the file savings? For example it would total up the bytes of each image and the saved bytes and then give a total summary of the # of bytes saved? I'm trying to figure out in the source how to do this. Since the function runs async I can't just total up the bytes and then spit out a summary at the end... Any clue on this?

firetix commented 9 years ago

it is possible to do, I'm going to take a look at this the next weekend, sorry for the late answer I was out of the grid