Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 294572

Flexible scheme and URI for image derivatives

$
0
0

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

Reference: https://www.drupal.org/core/beta-changes
Issue categoryFeature because gives new, more flexible, ways for modules to handle the image derivatives generation.
Issue priorityNot critical because right now modules still can alter the image derivative generation the last win and all other lose.
DisruptionNo disruption.

Viewing all articles
Browse latest Browse all 294572

Trending Articles