Project

General

Profile

Actions

Bug #16564

closed

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

Added by Jose Antonio Guerra over 17 years ago. Updated about 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 #1

Updated by Jose Antonio Guerra over 17 years ago

I've uploaded a patch with the suggested solution

Actions #2

Updated by Simon Schaufelberger about 12 years ago

  • Target version deleted (0)

i think this is not valid any more in newer versions. can be closed.

Actions #3

Updated by Stefan Galinski about 12 years ago

  • Category deleted (Communication)
  • Status changed from New to Closed
  • PHP Version deleted (4)
Actions

Also available in: Atom PDF