robertmarsal / lolcatjs

For the lols
Other
110 stars 10 forks source link

Optimizes PNG assets files #9

Closed mathieu-aubin closed 7 years ago

mathieu-aubin commented 7 years ago

Optimizes PNG assets files, reducing by about 70 percent the final filesizes of both of them with a somewhat lossless quality, you be the judge.. thanks

robertmarsal commented 7 years ago

Thank you for this!

Can I please ask what software you used to get this reduction?

Regards, Rob

mathieu-aubin commented 7 years ago

Hi, no problems. Thoses were done quickly using what i call a 'cornerstore' application. Something i dont use for lots of files but that proves efficient for less than 50 small files, per say. npm install tinypng-cli -g You will need to get a free 500 images/month API key from their website. What i truly suggest you do is look into pngquant, mozjpeg, gifsicles -- coupled with a nice bash script and some gnu parallel magic, you could almost live straight off just image optimizations heee. I remember one night, a non steady job too... about 800,000 pictures i processed with mozjpeg only, at the time.