Consumer

Lorem Picsum; Placeholder images as you want them

Lorem Picsum the image version of Lorem Ipsum thus providing free to use placeholder images in the style and size of your preference. Lorem Picsum uses images sourced from Unsplash, has no rate limits and uses Buluga CDN ensuring the images don’t slow you down.

The usage is super simple for Lorem Picsum: picsum.photos/300/300 will return a random image 300 high, 300 wide. Alternatively you can use the photo id: https://picsum.photos/id/237/200/300

The photo id is 237 with a width of 200 and height is 300. You can find all the photos and their id here or by the API endpoint https://picsum.photos/v2/list?page=1&limit=100.

The url above returns

https://picsum.photos/id/237/200/300

whilst https://picsum.photos/id/237/400/300 will show

https://picsum.photos/id/237/400/300

Removing /id/237 will fetch a random image.

You can add blur by adding ?blur=value on the end of the URL. The value can be in between 1 and 10.

https://picsum.photos/id/237/300/300?blur=2

Making the image grayscale is also possible, this is simply done by appending ?grayscale (&grayscale) onto the URL.

https://picsum.photos/id/237/300/300?grayscale

There is no shortage of free to use image placeholder services so there is nothing overly exciting with Lorem Picsum. It works, its fast and its free which is deserving of credit.

Share

Recent Posts

Kennington reservoir drained drone images

A drained and empty Kennington reservoir images from a drone in early July 2024. The…

1 year ago

Merrimu Reservoir drone images

Merrimu Reservoir from drone. Click images to view larger.

1 year ago

FTP getting array of file details such as size using PHP

Using FTP and PHP to get an array of file details such as size and…

2 years ago

Creating Laravel form requests

Creating and using Laravel form requests to create cleaner code, separation and reusability for your…

2 years ago

Improving the default Laravel login and register views

Improving the default Laravel login and register views in such a simple manner but making…

2 years ago

Laravel validation for checking if value exists in the database

Laravel validation for checking if a field value exists in the database. The validation rule…

2 years ago