Project

General

Profile

Actions

Bug #16564

closed

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

Added by Jose Antonio Guerra about 18 years ago. Updated over 12 years ago.

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

patch.txt (693 Bytes) patch.txt Administrator Admin, 2006-09-14 12:04
Actions

Also available in: Atom PDF