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
Actions