lowtechmag / solar

Pelican theme for solar powered version of lowtechmagazine.com
https://solar.lowtechmagazine.com
465 stars 25 forks source link

Use SVGs in content? #14

Open elbotho opened 2 years ago

elbotho commented 2 years ago

Love the project 💚

While reading this article I wondered if the schematics would not be a lot smaller (and way more readable & crisp) as SVGs.

I went ahead and roughly recreated the images as svg and optimized them with svgo and also manually optimized it to see if that makes a difference

File sizes

main page (jpg) solar page (png) illustrator+svgo (svg) manually optimized + svgo (svg)
gzip 841 kB 11.6 kB 2.9 kB 1.94 kB
brotli 829 kB 11.6 kB 2.4 kB 1.69 kB

Screenshots

main page solar page svg
image image image

Recreating images as svgs is obviously way too much work, but since I'm pretty sure the original image is made in vector software anyway this would be quite an improvement in quality, file size and possibly even accessibility 👍.