Hacker News new | ask | show | jobs
by sangeeth96 601 days ago
Since I'm committing my blog into git, I found it better to pre-optimize my images so that my repo won't balloon. At first, I wrote a script that simply `find`s my non-WebP images, turns them into WebP. It then looks for those image references in my *.md files and replaces the extension with WebP.

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/