lmorchard / blog.lmorchard.com

blog.lmorchard.com, a statically generated site
https://blog.lmorchard.com
9 stars 2 forks source link

Optimize and shrink images #36

Open lmorchard opened 2 years ago

lmorchard commented 2 years ago

Noticed that all my recent posts with tarot card screenshots are 1.5-2.0MB each and they're poorly presented. Should shrink and optimize them, whether automatically or with a manual tool

lmorchard commented 2 years ago

Good ole imagemagic can do this:

mogrify -resize 1200x1200 ./2022-**/*.png

But I might want a better solution here that runs on build and is sensitive to what's an actual interesting size for use in posts.