craftcms / cloud-extension-yii2

0 stars 1 forks source link

Image dimensions not updated when replacing an image in the Craft Cloud file system #47

Closed svale closed 1 month ago

svale commented 1 month ago

Description

In the CP Assets view, when using the "Replace file" option to replace an image assets with another, it seems the image dimensions that are stored in the CDN URL are not replaced / updated. The new image, regardless of its original width/height, is displayed with the ratio of the first image. As far as I can tell, this is both backend and frontend (if cropping transformation is not applied).

Locally on the local disc fallback of the file system, we see the expected behaviour (the new image retains its original format ratio).

Steps to reproduce

  1. Set up an assets volume using a Craft Cloud file system (NB: on a Craft cloud instance)
  2. Upload an image (e.g. landscape mode)
  3. Click the "Replace file" image menu option and replace with another image in a different format (e.g portrait)

Additional info

linear[bot] commented 1 month ago

PT-1978 Image dimensions not updated when replacing an image in the Craft Cloud file system

timkelty commented 1 month ago

Thanks for the report, @svale. We were able to reproduce the issue and are working on a fix now.

timkelty commented 1 month ago

@svale This is fixed in craftcms/cloud 1.61.0 and 2.6.0. Thanks for the report!

svale commented 1 month ago

Brilliant - thanks!