Project

General

Profile

Actions

Feature #21886

closed

Enables rotation of gifbuilder images with transparent background avoiding ugly triangles / step patterns

Added by Matthias Nagl almost 15 years ago. Updated about 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2009-12-26
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

Using the EFFECTS / rotate method to rotate gifbuilder objects by angles different from 90/180/270° results in images surrounded by triangles in the background color. The simple 1 bit opacity approach supportet by gifbuilder produces ugly step patterns due to anti aliasing if transparency is enabled.

Using recent versions of IM / GD allows to create png-24 images with 8 bit alpha channels. However it is not possible to use this feature in a typo3 4.3.0 installation.

The appended patch allows to rotate images in front of a (by default) transparent background using 8 bit alpha. I know that it is not a clean solution but I hope to show that it is possible to provide a better alpha support with recent versions of the libraries used by typo3. It would be great to find a better support for 8 bit alpha in upcoming typo3 releases.

A result of the appended patch can be seen on http://baeckerbuben.com (the buttons on the left side are dynamically created using gifbuilder).
(issue imported from #M13101)


Files

typo3-alpha-rotation-patch.diff (715 Bytes) typo3-alpha-rotation-patch.diff Administrator Admin, 2009-12-26 22:31
Actions

Also available in: Atom PDF