You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Crop this image with plone.app.imagecropping cropping editor
Change the image for something else
The croppings informations are not cleared, and the resulting scale(s) are still cropped on the new image (on a "random" area, depending on the old image)
Of course if the cropped scale is shown on your content view, you can see the problem directly (and re-crop the image manually), but if it is not the case (ex: scales used elsewhere), you can get very awkward results !
We should IMHO use a subscriber to get changed image fields and clear the cropping annotation storage for that fields when this happens.
Steps to reproduce :
plone.app.imagecroppingcropping editorOf course if the cropped scale is shown on your content view, you can see the problem directly (and re-crop the image manually), but if it is not the case (ex: scales used elsewhere), you can get very awkward results !
We should IMHO use a subscriber to get changed image fields and clear the cropping annotation storage for that fields when this happens.
@petschki @MrTango what do you think ?
Demo with
plone.app.imagecropping3.0.3 :20231025_032704937.mp4