craftcms / aws-s3

Amazon S3 volume type for Craft CMS.
https://plugins.craftcms.com/aws-s3
MIT License
61 stars 28 forks source link

Transforms update not working #147

Closed umkasanki closed 1 year ago

umkasanki commented 2 years ago

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

tommysvr commented 1 year ago

Are you still having this issue? I tried to reproduce on Craft 4.3.6 / AWS 2.0.1 but after rotating/cropping an image, a new 'generating pending image transforms' job is added to the queue, and the image shows as expected on the front-end.