- Issue created by @capellic
- π«π·France DrDam
As a note, I think it's necessary to question the need to have 250 different image styles in the project, just for the issue of storage space consumption (green-it / eco-design / cost / greenwashing...).
Did you use sort of CDN or S3-like storage services ? In this case, the disabling of the flush_derivative_images, in settings are the way to fix the issue.
In crop entity perspective, there is way to detect if the newly created crop is created from a "new uploaded image" or because someone change the ImageStyle configuration to adding crop in it (and a derivative image already exist for the source and must be flushed).
- πΊπΈUnited States capellic Austin, Texas
Thanks @drdam,
Did you use sort of CDN or S3-like storage services ? In this case, the disabling of the flush_derivative_images, in settings are the way to fix the issue.
We are hosting on Pantheon which sits behind the Fastly CDN. Sounds like disabling flush_derivative_images is recommended with this setup?
In crop entity perspective, there is way to detect if the newly created crop is created from a "new uploaded image" or because someone change the ImageStyle configuration to adding crop in it (and a derivative image already exist for the source and must be flushed).
I've read this a couple of times and I think that you are missing the word "no" in the above sentence, that "... there is no way to detect...". Can you clarify?
As a note, I think it's necessary to question the need to have 250 different image styles in the project, just for the issue of storage space consumption (green-it / eco-design / cost / greenwashing...).
It's actually half that but point well taken. I dream of the day we can set one Image Style and Fastly's IO product will use field data to determine the optimal responsive image set.
- π«π·France DrDam
We are hosting on Pantheon which sits behind the Fastly CDN. Sounds like disabling flush_derivative_images is recommended with this setup?
that's what I would recommend. The "derivative cache" are supported by the CDN, so no need to "force drupal" to handle it.
I've read this a couple of times and I think that you are missing the word "no" in the above sentence, that "... there is no way to detect...". Can you clarify ?
You are right, I fix my message. There is no way
- πΊπΈUnited States capellic Austin, Texas
Thanks @drdam, I appreciate the assistance.
that's what I would recommend. The "derivative cache" are supported by the CDN, so no need to "force drupal" to handle it.
I just tested this and it doesn't appear to be working for me as you describe.
- Created a new node with a new image media entity.
- Uploaded a panoramic image so its easy to recognize when changing the focal point for the 4:3 use case.
- Defined the focal point on the far left of the panoramic image
- Saved the node, viewed the node, looks fine.
- Update the media entity to define a cropping focal point to the far right.
- Refreshed the page/node that the media entity appears on, no change to the cropping of the image, it appears that the stored in Fastly CDN has not been purged to then grab the updates version.
- Created a new node with a new image media entity.