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.
I have made an image style with 2 styles:
- Manual crop, with a minimum height and a minimum widith, but no constraint on the proportions.
- Scale with height and width, but no crop
When I display this image style in a view, the image tag gets width and height attributes equal to the minimum crop sizes I have entered. This means that although the image style is created perfectly with only one dimension at a minimum, the image displays as if the proportions were fixed.
Hope that explains it a bit...
Comments
Comment #1
MatthijsThanks for your bug report. This was already mentioned somewhere else, but no issue was opened yet... So thanks for doing so, I'll try to fix this soon!
Comment #2
MatthijsI removed the "dimensions callback" for both image effects, now their are no width and height attribute set... Please also see #1556244: Using 'manual crop' style, and leaving the minimum height and/or width fields blank results in missing image attributes.