Jan-Lukas Else 06 Mar 2020 10:58

I use BunnyCDN as storage for my Micropub media endpoint, where I upload all the photos and other media files I publish on my blog. When I upload a new photo the media endpoint first uploads the original file with the name of it’s SHA-256 hash value (so when I upload the same file multiple times, it …

That’s a great way to put it. Thanks for sharing how you’re doing it. I’m using the HTML picture element to serve pictures in different formats and sizes. Right now, besides the original, Hugo’s generating two more that are compressed and resized.

With the new Photos page, I want to create a gallery view so I would also need to have a thumbnail… And this complexity of generating all this different kind of pictures is what’s stopping me now to do it the way you’re doing. I’d certainly also want to have WebP versions of them. I just don’t because Hugo does not support converting to WebP yet.

This is definitely not impossible, it’s doable. But is it the best option? What if I want to suddenly change the sizes in the gallery? I’ll need to regenerate everything… Maybe thinking too far ahead.

Or if you don't know what a response is, you can always write a webmention comment (you don't need to know what that is).