Issue Bug Closed

#16564Setting the .ext value in imgResource is ignored when using .m (masks)

Jose Antonio Guerra 09/14/06, 12:01 updated 03/01/12, 16:00

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.