Les Orchard

Playing with image uploads

Snappy's was playing The Fifth Element when I went there for lunch today. I wonder if I can get image uploads to work? Actually, probably not: I think I need to write the code to copy the images to the site build 🤔

(...time passes...)

And, I think I managed to do it? Added code to copy over attachments from Obsidian. Had to rework the URLs for display in post lists, too. And it looks like I fixed my image gallery component by not lazy-loading the images. Not entirely happy with that outcome, so I may bang on it some more. But it seems to be working better now overall.

But, the nice thing is that I can easily add images as attachments to a file in Obsidian. That makes it a comfy user interface for me - even from my phone - and the site generator takes care of the rest!

Next part might be to apply a little image optimization along with the copying, since these images are straight from my phone and probably too huge?

Comments loading...
Blogging elsewhere than into the void  Previous Miscellanea for 2025-05-10 Next