Flexible scheme and URI for image derivatives

Created on 2 December 2011, over 12 years ago
Updated 10 April 2024, 3 months ago

Problem/Motivation

The image style generation has been improved in #2027423: Make image style system flexible β†’ . Now a module can change the way image derivatives are generated. However, right now altering the derivative URI can be done by extending \Drupal\image\Entity\ImageStyle. This is a problem because the last module to override the image style class wins, and everyone else loses.

Proposed resolution

Allow modules to alter the image style derivative generated URI by implementing a new hook_image_style_uri_alter().

Remaining tasks

None.

User interface changes

None.

API changes

New hook hook_image_style_uri_alter().

Data model changes

None.

Beta phase evaluation

<!--Uncomment the relevant rows for the issue. -->
✨ Feature request
Status

Needs work

Version

11.0 πŸ”₯

Component
Image moduleΒ  β†’

Last updated 5 days ago

Created by

πŸ‡ΊπŸ‡ΈUnited States Dave Reid Nebraska πŸ‡ΊπŸ‡Έ

Live updates comments and jobs are added and updated live.
  • API addition

    Enhances an existing API or introduces a new subsystem. Depending on the size and impact, possibly backportable to earlier major versions.

  • Needs issue summary update

    Issue summaries save everyone time if they are kept up-to-date. See Update issue summary task instructions.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024