News for hackers. Stuff that matters.
Re:Show HN: Sublime Merge – A Git client from the makers of ... by vladdanilov on Thursday September 20, 2018 @08:10AM (#18031658)
Nice to see you're using the same animation technique [1]. MP4 could not possibly provide this level of quality/size (~150KB per animation).

Pngcrush is rather limiting though. I could compress the PNG textures by ~8% more with optimage [2] (I'm the author).

And for newer browsers, serving the textures as brotli-compressed BMPs would actually make them >30% smaller (probably more with filtered but uncompressed PNGs).

[1] http://www.sublimetext.com/~jps/animated_gifs_the_hard_way.h...

[2] https://getoptimage.com

Re:Show HN: Sublime Merge – A Git client from the makers of ... by wbond on Thursday September 20, 2018 @09:20AM (#18032186)
We built the animations using a slightly enhanced version of anim_encoder, which I currently have online at https://github.com/wbond/anim_encoder. One of the changes was adding pngquant which helped compress the images a bunch beyond pngcrush.
Re:Show HN: Sublime Merge – A Git client from the makers of ... by vladdanilov on Thursday September 20, 2018 @11:00AM (#18032904)
You will get better results by swapping the two. Pngquant stops at color quantization.

Also, most of those savings came from near-optimal Deflate compression.

Re:Show HN: Sublime Merge – A Git client from the makers of ... by wbond on Thursday September 20, 2018 @11:28AM (#18033152)
Thanks for the tip!