How to replace a not exists image on Object Storage with a specialized image?

When I directly access an Image which is not existing on an Object Storage bucket. How can I use a placeholder image to replace it?

That is very helpful when a bucket serves a static website.

1 Reply

I was able to add a placeholder image to my Hugo static site using Lorem Picsum and the instructions in this video with just a few lines of code.

However, since these images are random and just added to my site from elsewhere, it may not be the exact solution you're looking for. You may want to reach out to a static hosting community such as the one centered around Hugo to see if they have some thoughts or solutions for you.


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct