How to generate temporary image for development environment?

Asked

Viewed 67 times

1

Some time ago I found a post that showed how to generate temporary images, an image with gray background and a background marking containing the dimensions of the same. This image is generated automatically, with dimensions determined by passing the get parameter, that is, it was not saved on disk, it was only used to have a preview of how the layout would look.

However, I lost this post and can’t locate anything that talks about the resource. Any guidance on how can I use this feature? Documentation, etc?

  • Are you talking "placeholder" for image? I see this in quick prototypes

  • More or less, it was actually an image, but instead of a "figure" there was a marking with the dimensions of the image. The same was generated by calling a URL. I edited the post to clarify my question.

1 answer

6


I believe you’re referring to https://placeholder.com/, on it you can generate images "with gray background and a background marking containing the dimensions of the same".

For example:

<img src="http://via.placeholder.com/350x150">

If you want, you can even change the color, besides the size:

<img src="http://via.placeholder.com/250x500/d00254/f565845">


  • That’s right. Thank you.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.