aws-s3 icon indicating copy to clipboard operation
aws-s3 copied to clipboard

Transforms update not working

Open umkasanki opened this issue 3 years ago • 0 comments

Description

Hi guys. I use AWS + CloudFront to store assets. Is it possible to configure the saving of images in such a way that when the images change, the transformations are updated or cleared.

My template

{% set asset = craft.assets.one() %}

<h4>no crop</h4>
<img src="{{ asset.url }}" width="250">

<h4>native crop</h4>
<img src="{{ asset.getUrl({
    width: 400,
    height: 400,
}) }}" width="250">

Now the transformed image only updates if I replace image. If I crop, rotate or change the focus point, the transformed image is displayed in the same.

https://user-images.githubusercontent.com/496132/180731507-e290508e-f53e-4ab3-9423-21d20d151a1a.mp4

Steps to reproduce

  1. Transform image in template
  2. Open template in browser
  3. Crop of rotate image in the CP
  4. Check template in browser

Additional info

  • Craft version: 3, 4
  • PHP version: 7.4, 8.1
  • Database driver & version: MySQL 8
  • Plugins & versions: Amazon S3 2.0.1

umkasanki avatar Jul 25 '22 08:07 umkasanki