Steps to reproduce

  1. Make sure focal point is not installed
  2. Add an image to (lets say) node/3
  3. Enable focal point and setup an image style
  4. 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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

mpastas created an issue. See original summary.

bleen’s picture

Just to double check... these are the steps to reproduce:

  1. Make sure focal point is not installed
  2. Add an image to (lets say) node/3
  3. Enable focal point and setup an image style
  4. Notice that the image attached to node/3 is cropped at the top left of the image

Is this right?

bleen’s picture

Issue summary: View changes
mpastas’s picture

That 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.

mpastas’s picture

Bleen did you have the chance to review it ?

bleen’s picture

Status: Active » Needs review

here testbot ... here boy

moshe weitzman’s picture

Passed tests.

bleen’s picture

Title: Using focal point in an existing site break old images » When enabling focal point on an existing site, existing images are improperly cropped
Status: Needs review » Reviewed & tested by the community

  • bleen committed 398a1b6 on 8.x-1.x authored by mpastas
    Issue #2826418 by mpastas: When enabling focal point on an existing site...
bleen’s picture

Nice catch. Thanks!!

bleen’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.