When I use smartcrop as the only image effect the width and height attributes are gone. I tracked it down to the "image_style_transform_dimensions" function in images.module. Since both image effect don't have a "dimensions passthrough" nor a "dimensions callback" element dimensions are set to NULL.
The fix is to add a valid dimensions callback, since the image size can change.
The core callback "image_resize_dimensions" works perfectly for me.
Attached the patch to fix this.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | add_dimensions.patch | 789 bytes | steven jones |
Comments
Comment #1
steven jones commentedPatch needs a re-roll.
Comment #2
steven jones commentedComment #4
attiks commentedThis is breaking picture module since we need the dimensions to be able to output the right sizes.
Comment #5
rainbowarrayNot sure why tests are failing on this, but verified that this patch works and fixes the issue with picture.
Comment #6
attiks commentedTest images aren't found