larsonjj / generator-yeogurt

A generator for creating static sites. Helps you harness the power of your favorite tools: Pug or Nunjucks, Gulp, ES6/2015, and much more!
MIT License
542 stars 73 forks source link

Implement better tool for png compression #204

Closed bichotll closed 5 years ago

bichotll commented 7 years ago

My colleague argued that the images were way too heavy and compared the output with what TinyPNG would provide. It was around 75% lighter in size.

https://tinypng.com/

I think that could be implemented easily with gulp using gulp-imagemin as a plugin?

I might do so if I have a bit of time.

bichotll commented 7 years ago

Sorry, I didn't realise it was not an open source tool. In any case, I understand that can be optimised.

larsonjj commented 5 years ago

Hey @bichotll,

I realize this is a super late response, but wanted to give some insight here before closing this issue. This generator uses gulp-imagemin to process images and there are quite a few plugins that can be used based on your requirements (see https://www.npmjs.com/search?q=imagemin). These plugins can easily be installed via npm and added the imagemin gulp task to a generated project.

Cheers 🍻