It's a game changer to be able to copy photos directly from my Google Photos and not worry about it bloating my web pages.
[1] https://github.com/JosephNaberhaus/naberhausj.com/blob/05846...
It's a game changer to be able to copy photos directly from my Google Photos and not worry about it bloating my web pages.
[1] https://github.com/JosephNaberhaus/naberhausj.com/blob/05846...
But now, I have a better workflow where I use the Image Converter plugin[^1] in Obsidian since that's how I'm composing my notes primarily. As I paste the images into the markdown file, it gets converted and embedded. There's also Clop[^2] for macOS which auto converts if I copy an image/file to my clipboard into my desired format and quality.
Quite happy with this setup for the time being.
[^1]: https://github.com/xRyul/obsidian-image-converter [^2]: https://lowtechguys.com/clop/
Though I'm not sure many browsers actually use anything other than the largest image option...
I've debated encoding to AVIF as well, but that's such a painfully long process on a blog with somewhere around 8700 images.
[^1]: https://github.com/PowerSnail/PowerSnail.github.io/blob/mast...
{{ $image.Resize "600x webp q50" }}
[0] https://gohugo.io/content-management/image-processing/I switched to checking in the alternate image sizes and using a hugo image render hook to check for the existence of the alternative images to generate the appropriate srcset.