[TYPO3-core] RFC #13406: thumbs.php: Thumbnails for images with transparent background look ugly
Andreas Wolf
typo3ml at andreaswolf.info
Tue Feb 2 20:17:51 CET 2010
This is an SVN patch request.
Type: Bugfix
Bugtracker references:
http://bugs.typo3.org/view.php?id=13406
Branches:
TYPO3_4-1
TYPO3_4-2
TYPO3_4-3
trunk
Problem:
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.
Solution:
Do not downsample the color depth of images in thumbs.php.
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.
Regards
Andreas
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 0013406_v1.diff
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100202/4908a9dd/attachment.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 258 bytes
Desc: OpenPGP digital signature
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100202/4908a9dd/attachment.pgp>
More information about the TYPO3-team-core
mailing list