After changing focal point, image doesn't change until you click preview

Created on 4 September 2017, almost 7 years ago
Updated 11 June 2024, 13 days ago

We're seeing a similar problem as the video at the top of this issue - I'm referring to it for the nice video.
https://www.drupal.org/node/2842260

In our case the image stays the same until you actually click preview after having changed the focal point and saved. So if any of our editors want to change where the focal point is set, they need to:

1. Edit the article where the image is displayed
2. Click edit to open the media entity form
3. Move the focal point, click save on the media entity
4. Click edit again to open the media entity form, click Preview that somehow forces regeneration of the image styles
5. Profit

The goal is naturally that they can jump directly from 3 to 5, skipping the Preview step.

This problem is reproducible on several environments - and I guess it makes sense to mention that the image field itself is not marked as translatable at the moment, even though the media entity has fields on it that are translatable.

To try and solve this problem I first upgraded crop from 1.0 to 1.2, and then focal point from 1.0.0-beta4 to dev-1.x and then I added the patch from https://www.drupal.org/node/2842260 - and none of those updates seemed to help.

Any ideas?

🐛 Bug report
Status

Needs review

Version

2.0

Component

Other Code

Created by

🇫🇮Finland badrange

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024