Placeholder images do for pictures what Lorem Ipsum does for text. They fill the space before the real photos are ready. That way, you can see how a layout works. A few habits make them much more useful.
Photo, illustration or solid color?
Loremly's placeholder image generator offers three types. Each one fits a different stage of a project.
- Photos make mockups (pictures of how a page will look) feel real. Use them for landing pages, blog cards and anything you will show to clients.
- Illustrations (drawn pictures) add color without a real-world subject. They work well for hero sections (the big banner at the top of a page) and app screens.
- Solid colors show their own size, such as "600 × 400", right in the image. They are great for wireframes (simple sketches of a page) and docs. Everyone can see what size goes where.
Use the sizes you will really need
Start from the sizes your design really uses. Don't just pick a random square. Here are some common ones:
| Use | Size |
|---|---|
| Social share image | 1200 × 630 |
| Blog or article card | 1200 × 800 |
| Wide banner | 1600 × 400 |
| Thumbnail | 300 × 200 |
| Avatar | 200 × 200 |
Photos are cropped to just the size you ask for. The crop keeps the main subject in the frame.
Keep images the same
Random images are fun. But they change each time a page reloads. So screenshots don't match, and reviews get confusing.
Choose Same every time and type any word, for example homepage. The same word, size and category (type of image) always give the same picture. The API (a way for your code to ask for images) works the same way:
<img src="https://www.loremly.com/api/v1/photo?w=1200&h=800&seed=homepage&category=nature" width="1200" height="800" alt="">
Always set width and height
Look at the width and height settings in the example above. Without them, the browser does not know how much space to save. So the page jumps around while images load. This is called layout shift, and it annoys visitors. It also counts against your site in Google's page experience scores.
Loremly's HTML copy option adds width and height for you.
Make backgrounds quieter
Behind text, a sharp, bright photo can make headlines hard to read. Turn on Black & white, or add a little Blur. This pushes the image into the background.
Replace them before launch
Placeholder images are only for now. Before you go live:
- Swap each one for the final image, at the same size.
- Write real
alttext that describes the final image. Alt text is a short note that tells people what the image shows. - Search your code for
/api/v1/photoand/api/v1/image. This makes sure none slipped through.
All photos and illustrations from Loremly are free to use. That includes work you sell or get paid for. And you don't need to give credit.