Project

General

Profile

Actions

Bug #22046

closed

thumbs.php: Thumbnails for images with transparent background look ugly

Added by Andreas Wolf almost 15 years ago. Updated over 14 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2010-02-02
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.3
PHP Version:
5.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

When viewing a thumbnail generated by thumbs.php for a file in the backend, the background of transparent images gets filled and looks really ugly. This seems to be related to a downsampling of the image's colordepth. This downscaling is done in t3lib/thumbs.php, presumably to save disk space and bandwidth.
As lines are faster and disks are cheaper now than 2003, this is unneccessary. So the whole downscaling for GIFs and PNGs should be removed. Attached patch fixes this.

(issue imported from #M13406)


Files

0013406_v1.diff (916 Bytes) 0013406_v1.diff Administrator Admin, 2010-02-02 20:13
screen.png (49 KB) screen.png Administrator Admin, 2010-02-03 07:17
icon-cart.png (211 Bytes) icon-cart.png Administrator Admin, 2010-02-21 20:43
13406_v3.diff (1.05 KB) 13406_v3.diff Administrator Admin, 2010-02-21 20:44
Actions #1

Updated by Bernhard Kraft almost 15 years ago

In the attached file this issue does not seem to occur. Under which circumstances is this problem visible. Can you upload an example image and information about the used image manipulation software?

Actions #2

Updated by Benni Mack over 14 years ago

the attached gif does not work without the patch, but after applying it works.

Actions #3

Updated by Benni Mack over 14 years ago

committed to trunk (rev. 6950),
committed to TYPO3_4-3 (rev. 6951)
committed to TYPO3_4-2 (rev. 6952)

Actions

Also available in: Atom PDF