This project is not covered by Drupal’s security advisory policy.
Adds a [picsum] shortcode to the Shortcode module, so editors can drop random placeholder images from Lorem Picsum into any text format.
Usage
[picsum width="900" height="600" /] [picsum width="400" height="400" grayscale="yes" blur="yes" /] [picsum image="237" width="600" height="400" class="my-class" /]
Options
width/height: image size in pixels (default 900 × 600)random:yes(default) orno. Whenyes, each shortcode gets a different imageimage: a specific Picsum image ID (this turns off random)grayscale:yesorno(default)blur:yesorno(default)class: extra CSS classes to add to the<img>
Versions
Installation
composer require drupal/picsum_shortcodedrush en picsum_shortcode
Then enable the "Picsum" shortcode in your text format's settings (Configuration → Content authoring → Text formats and editors).
Upgrading from the 7.x Unsplash Shortcode
This module was previously the Unsplash Shortcode ([unsplash]), which used unsplash.it. That service now redirects to Lorem Picsum, so 2.0.x and later use Picsum directly.
- The shortcode is now
[picsum]; existing[unsplash]tags will not render. - The default CSS class is now
picsum-imageinstead ofunsplash-image. gravityis no longer supported, because Picsum has no equivalent.- Picsum image IDs differ from the old unsplash.it image numbers.
Project information
Minimally maintained
Maintainers monitor issues, but fast responses are not guaranteed.Maintenance fixes only
Considered feature-complete by its maintainers.- Project categories: Content editing experience
- Ecosystem: Shortcode
- Created by dieppon on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
Releases
Lorem Picsum Shortcode for Shortcode 3.x and Drupal 11.1+ / 12
Development version: 3.0.x-dev updated 24 Nov 2026 at 15:14 UTC
First release of the Drupal 9.3+ port of the Unsplash Shortcode, now renamed Lorem Picsum Shortcode.
Development version: 2.0.x-dev updated 24 Nov 2026 at 15:13 UTC
