Bug #78618
openImage manipulation wizard does not update replaced media
0%
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.
Files
Updated by Riccardo De Contardi over 7 years ago
Still reproducible on 7.6.16 and latest master 8.7.1-dev.
Updated by Riccardo De Contardi over 6 years ago
Still reproducible with 9.2.0-dev (latest master)
Updated by Markus Klein about 6 years ago
- Status changed from New to Accepted
- Priority changed from Should have to Must have
Updated by Riccardo De Contardi almost 3 years ago
- File Cattura1.PNG Cattura1.PNG added
- File Cattura2.PNG Cattura2.PNG added
- Status changed from Accepted to Needs Feedback
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 (284x178px)
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 113x178px >>> ASPECT RATIO: 113/178=0.634
5) 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 1159x1186px
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(641x1186px)
- 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)
Updated by Riccardo De Contardi almost 3 years ago
- File Cattura3.PNG Cattura3.PNG added
[UPDATE]
I've also tried with a third image, with a portrait aspect ratio (1000x1500px) and after the replace, the cropped area became 397/1499=0.264