Bug #17581

Crop-Scaling the same image with different dimensions might produce wrong files

Added by Ernesto Baschny almost 14 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
Communication
Target version:
-
Start date:
2007-09-04
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.2
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

If the same image needs to be generated more than once with different crop-scale configurations, it might occur that the same hash will be generated for both versions, so that the second crop-scaling will render the same image which was produced with the first crop-scaling.

Test with an 800x600 image:

page = PAGE
page {
10 = IMAGE
10 {
file = fileadmin/Blaue_Berge.jpg
file.width = 80c
file.height = 80c
wrap = <div>Image 80x80:<br/>|</div>
}
20 < .10
20.file.width = 100c
20.file.height = 80c
20.wrap = <div>Image 120x80:<br/>|</div>
}

Expected is two different files (and hashes), but we get the same hash twice (thus the same 80x80 file).
(issue imported from #M6261)


Files

6261.diff (925 Bytes) 6261.diff Administrator Admin, 2008-08-15 02:47

Also available in: Atom PDF