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.
Steps to reproduce
- Make sure focal point is not installed
- Add an image to (lets say) node/3
- Enable focal point and setup an image style
- Notice that the image attached to node/3 is cropped at the top left of the image
Expected result
In the absence of a focal point value, the default (50,50) should be used
Original report
Hi guys,
Using focal point in an existing live site is not working correctly since the old images are not cropped correctly.
Coordinates that are being used with old images are 0,0.
I have confirmed this issue. The steps to re
Comment | File | Size | Author |
---|---|---|---|
#4 | focal_point-fix_existing_images_crop_coordinates-2826418-4-D8.patch | 784 bytes | mpastas |
Comments
Comment #2
bleen CreditAttribution: bleen at NBCUniversal commentedJust to double check... these are the steps to reproduce:
Is this right?
Comment #3
bleen CreditAttribution: bleen at NBCUniversal commentedComment #4
mpastas CreditAttribution: mpastas at Globant commentedThat is right! I noticed the focal point is being calculated with the original image when it is generated right, so maybe the following patch is a fix.
Let me know your comments.
Comment #5
mpastas CreditAttribution: mpastas at Globant commentedBleen did you have the chance to review it ?
Comment #6
bleen CreditAttribution: bleen at NBCUniversal commentedhere testbot ... here boy
Comment #7
moshe weitzman CreditAttribution: moshe weitzman commentedPassed tests.
Comment #8
bleen CreditAttribution: bleen at NBCUniversal commentedComment #10
bleen CreditAttribution: bleen at NBCUniversal commentedNice catch. Thanks!!
Comment #11
bleen CreditAttribution: bleen at NBCUniversal commented