Install

Works with Drupal: ^9.3 || ^10 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 8.9 KB
MD5: 0123fb03bf278c8c84c639d905f0e195
SHA-1: c35a975c7cac36836d7763ce32dc3ab7e52f49d2
SHA-256: 2c49087388123b0e46f2c041c1861310ea20b989233ddaef90f3b8188c1c5f5e
Download zip 10.58 KB
MD5: bb48d4aeac4be99c168f2e3f2306288e
SHA-1: b23381f76dab03be58aea3a41416ff2ed17c6a2f
SHA-256: 2c379bf4069e98a43e429828878206f4c9dd6754831043e0ccbcbfae36c721b3

Release notes

First release of the Drupal 9.3+ port of the Unsplash Shortcode, now renamed Lorem Picsum Shortcode.

Requirements

  • Drupal ^9.3 || ^10 || ^11
  • Shortcode ^2.0

Changes

  • Ported from Drupal 7 to the Shortcode 2.x plugin API (@Shortcode annotation).
  • Switched from the defunct unsplash.it to Lorem Picsum.
  • Renamed the module to picsum_shortcode and the shortcode to [picsum].
  • Output attributes are now escaped.
  • Fixed a stray gap x class being added when class was set. The image now has picsum-image plus any class you pass.
  • Added a README and composer.json.

Breaking changes

  • Existing [unsplash] tags will no longer render. Replace them with [picsum].
  • The gravity option is removed because Picsum has no equivalent.
  • Picsum image IDs differ from the old unsplash.it image numbers.
  • The CSS class changed from unsplash-image to picsum-image.

3.0.0-beta1

Lorem Picsum Shortcode for Shortcode 3.x and Drupal 11.1+ / 12.

Requirements

  • Drupal ^11.1 || ^12
  • Requirements

    • Drupal ^11.1 || ^12
    • Shortcode ^3.0

    Changes

    • The plugin now uses the Shortcode 3.x PHP attribute (#[Shortcode]) instead of the annotation.
    • Method signatures, strict types and #[\Override] now match the Shortcode 3.x interface.
    • Raised the core requirement to ^11.1 || ^12 and the Shortcode requirement to ^3.0.
    • No changes to the [picsum] shortcode or its options.

    Upgrading

    • From 2.0.x: update Drupal and Shortcode, then update this module. Your content needs no changes.
    • From the 7.x Unsplash Shortcode: see the README, as all the 2.0.0-beta1 breaking changes apply.
    • Sites on Drupal 9.3–10 or Shortcode 2.x should stay on 2.0.x.
Created by: dieppon
Created on: 24 Nov 2026 at 15:15 UTC
Last updated: 24 Nov 2026 at 15:16 UTC
Bug fixes
New features

Other releases