Actions
Bug #16564
closedSetting the .ext value in imgResource is ignored when using .m (masks)
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2006-09-14
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.0
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Consider the following imgResource:
file = origin.jgp
file.ext = png
file.m.mask = somefile.png
file.m.bgImg = someother.png
The resulting image format should be "png", but it is always being generated like the original image (jpg in this case)
There's a bug in class.tslib_content.php:
Line 4644:
$imgExt = (strtolower($fI['fileext'])==$gifCreator->gifExtension ? $gifCreator->gifExtension : 'jpg');
Should be corrected:
$imgExt = (strtolower($fileArray['ext'])==$gifCreator->gifExtension ? $gifCreator->gifExtension : 'jpg');
(issue imported from #M4218)
Files
Updated by Jose Antonio Guerra about 18 years ago
I've uploaded a patch with the suggested solution
Updated by Simon Schaufelberger over 12 years ago
- Target version deleted (
0)
i think this is not valid any more in newer versions. can be closed.
Updated by Stefan Galinski over 12 years ago
- Category deleted (
Communication) - Status changed from New to Closed
- PHP Version deleted (
4)
Actions