Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
By jbrown on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
7.x
Introduced in version:
7.9
Issue links:
Description:
2 optional keys have been added to hook_image_effect_info(). They are used to populate the <img> tags generated by theme_image_style():
- "dimensions passthrough": (optional) Set this item if the effect doesn't change the dimensions of the image.
- "dimensions callback": (optional) The function to call to transform dimensions for this effect.
See http://api.drupal.org/api/drupal/modules--image--image.api.php/function/...
and http://api.drupal.org/api/drupal/modules--image--image.effects.inc/funct...
Impacts:
Module developers