Meta

Entries

This blog over time

/attachments/site/dharana-net-2007_hu16865962161744812024.webp

Since the early 2000s, the blog has had quite a few different looks. Here are some snapshots in chronological order from 2001 to 2022:

juan.al (2022 - heavily inspired by gwern.net’s design)
juan.al (2022 - heavily inspired by gwern.net’s design)

juanalonso.net (2021 - Hugo’s mainroad theme with tweaks)
juanalonso.net (2021 - Hugo’s mainroad theme with tweaks)

juanalonso.net (2016)
juanalonso.net (2016)

juanalonso.net (2015)
juanalonso.net (2015)

juanalonso.net (2014)
juanalonso.net (2014)

slnc.me (2013)
slnc.me (2013)

— 2024-01-01

Tools

List of useful tools. — 2023-02-05

47% Space Savings Migrating from JPG to WebP

Today I converted all images on this hugo site, mostly travel photographs, from, mostly, JPEG to WebP because it seems like a widely supported format that is more efficient and covers both lossy and lossless use cases.

I used the following script which relies on Google’s WebP Converter.

# Create WebP files
$ find Public/ -depth -name "*.png" -exec sh -c 'cwebp -preset picture -q 95 -hint picture "$1" -o "${1%.png}.webp"' _ {} \;
$ find Public/ -depth -name "*.jpeg" -exec sh -c 'cwebp -preset picture -q 95 -hint picture "$1" -o "${1%.jpeg}.webp"' _ {} \;
$ find Public/ -depth -name "*.jpg" -exec sh -c 'cwebp -preset picture -q 95 -hint picture "$1" -o "${1%.jpg}.webp"' _ {} \;

# Update entries references to use WebP
find Public -type f -name '*.md' -exec sed -i '' s/\.jpg/\.webp/g {} +
find Public -type f -name '*.md' -exec sed -i '' s/\.png/\.webp/g {} +
find Public -type f -name '*.md' -exec sed -i '' s/\.jpeg/\.webp/g {} +

Space used by images: BEFORE: 650Mb of images AFTER: 412Mb

— 2022-08-24

About Juan

/attachments/site/juan2019_hu17799737289594006134.webp
Who am I & what have I done? Contact information. — 2022-07-24

About juanalonso.com

Meta page describing this blog’s content. — 2001-01-01