danielthepope / trntxt

:steam_locomotive::train::train: A data-friendly UK train times site
https://trntxt.uk
MIT License
36 stars 9 forks source link

Shrunk all SVG and one PNG #51

Closed edent closed 5 years ago

edent commented 5 years ago

Let's get those SVGs down as low as possible. Some good speed / bandwidth savings there.

I might dig in to shrinking the auto-generated PNG favicons, if you like?

danielthepope commented 5 years ago

Thanks for the contribution, that looks great! What did you use to compress them? This PR made me realise that I don't need trntxt_icon.svg anymore: I'll delete that one later. I'm already using OptiPng to compress the auto-generated icons, so I wouldn't worry too much about that. That said, it might be cool to see how much data would be saved if, for example, I didn't produce a gradient background.

edent commented 5 years ago

I used https://jakearchibald.github.io/svgomg/ and then hand-edited to remove some of the cruft that it doesn't deal with.