#78618Image manipulation wizard does not update replaced media
Description
Steps to reproduce:
1) Upload an image to fileadmin
2) Insert the image into a content element
3) Open the Image manipulation wizard
4) Replace the image in module ‘Filelist’ and activate option ‘Keep the current filename?’
5) Re-open the Image manipulation wizard
The Image manipulation wizard now still displays the original/replaced file (step 1) if the new image (step 4) is not too big to get scaled (src= /fileadmin/_processed_/ instead of /fileadmin/...).
The ‘Original dimensions’ are read from the new image (step 4), but it seams the dimensions for the cropping tool are still fetched from the old image (from browser cache). If the new image has different width/height, the user can either select non existing areas or can’t select existing areas of the image.
Preventing the image being loaded from browser cache fixes this.
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Files 3
History 6
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2017-04-12T00:18:44+00:00" > 04/12/17, 00:18 </span>
-
Riccardo De Contardi commented <span data-processor="relativetime" data-value="2018-02-24T23:21:01+00:00" > 02/24/18, 23:21 </span>
Still reproducible with 9.2.0-dev (latest master)
-
Markus Klein changed status
NewAccepted priorityShould haveMust have <span data-processor="relativetime" data-value="2018-11-14T13:30:10+00:00" > 11/14/18, 13:30 </span> -
Riccardo De Contardi commented and changed attached Cattura1.PNG attached Cattura2.PNG status
AcceptedNeeds Feedback <span data-processor="relativetime" data-value="2021-12-05T16:52:31+00:00" > 12/05/21, 16:52 </span>I update this issue with the findings I’ve found trying to reproduce it on TYPO3 11.5.3
I’ve performed the tests using the TYPO3 demo site:1) Filelist module > “Illustrations” Filemount > I uploaded a “sky.jpg” image (284×178px)
2) Page module > on a page, I created a “Text and media” CE
3) Tab “Media” > added a new relation with the file uploaded at step 1
4) Open the image manipulation wizard and used it to crop the image; as you can see from the cattura1.png screenshot, the cropped area is 113×178px >>> ASPECT RATIO: 113/178=0.6345) Save and close
6) Go again on Filelist module > “Illustrations” Filemount > I choosed to upload another file with the same name (sky.jpg), whose size is 1159×1186px
7) I choosed to Overwrite the file
8) Go again on the page selected at step 2)result 1:*
The preview of the CE on the *Page module already shows the updated image*Result 2:*
9) Open the CE > Tab “Media” > open the image manipulation wizard > the result is shown on the attached “Cattura2.png” file:- the dimensions of the cropped area has been adapted to the dimensions of the new image(641×1186px)
- The aspect ratio of the cropped area is now 641/1186=0.54 (Why? – I guess it’s a consequence of the different aspect ratio of the second image)
-
Riccardo De Contardi commented and changed attached Cattura3.PNG <span data-processor="relativetime" data-value="2021-12-05T17:07:25+00:00" > 12/05/21, 17:07 </span>
[UPDATE]
I’ve also tried with a third image, with a portrait aspect ratio (1000×1500px) and after the replace, the cropped area became 397/1499=0.264
-
Georg Ringer commented and changed status
Needs FeedbackClosed <span data-processor="relativetime" data-value="2025-04-20T14:47:45+00:00" > 04/20/25, 14:47 </span>Hey Georg,
just checked the current code. In
FileDeletionAspectthe eventAfterFileReplacedEventis used to remove potential processed files.Regarding the cropping configuration: of course the CMS can’t handle any update to the processing configuration because there is no way to do any migration but this is not part of the initial issue anyway.
Still reproducible on 7.6.16 and latest master 8.7.1-dev.