Bug #78618

Image manipulation wizard does not update replaced media

Added by Georg Tiefenbrunn over 5 years ago. Updated 6 months ago.

Status:
Needs Feedback
Priority:
Must have
Assignee:
-
Category:
Backend User Interface
Target version:
-
Start date:
2016-11-09
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
7
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

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

Cattura1.PNG (237 KB) Cattura1.PNG Riccardo De Contardi, 2021-12-05 16:40
Cattura2.PNG (1.47 MB) Cattura2.PNG Riccardo De Contardi, 2021-12-05 16:48
Cattura3.PNG (874 KB) Cattura3.PNG Riccardo De Contardi, 2021-12-05 17:07
#1

Updated by Riccardo De Contardi about 5 years ago

Still reproducible on 7.6.16 and latest master 8.7.1-dev.

#2

Updated by Riccardo De Contardi about 4 years ago

Still reproducible with 9.2.0-dev (latest master)

#3

Updated by Markus Klein over 3 years ago

  • Status changed from New to Accepted
  • Priority changed from Should have to Must have
#4

Updated by Riccardo De Contardi 6 months ago

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)
#5

Updated by Riccardo De Contardi 6 months ago

[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

Also available in: Atom PDF