Preview feature impacts live images

Created on 28 March 2018, almost 7 years ago
Updated 17 January 2023, almost 2 years ago

If you preview a image using the preview feature of focal point when editing a node and this node is live it will update the live version of this image which is not expected since it is supposed to be only a preview.

🐛 Bug report
Status

Active

Version

1.0

Component

Miscellaneous

Created by

🇫🇷France progzy

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.

  • We just started using Focal Point on our project and I'm seeing this issue. Using the preview functionality it updates the live version of the image style on the server. It would be nice if the preview button generated the image styles in some temporary folder of choice without touching the actual image styles already created being used on the live site.

  • 🇫🇷France DrDam

    diag : the point here is the same as many (many) other Crop/Image anomalies, Drupal Core don't know how handle multiple "version" of the same derivative ( I.E. couple ImageStyle x ImageFile ).

    There is no real solution base of maintening the current implementation of the "focal point preview" feature.

    2 solutions are possibles :
    - Simulate the rendering (by CSS/html style manipulation) instead using the full derivative generation
    - Add some "context" to the derivativ generation (I.E. hack some core process in order add this feature)

Production build 0.71.5 2024