Project

General

Profile

Actions

Bug #39625

closed

wrong imagesize in gifbuilder

Added by Kjeld Schumacher almost 12 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Image Cropping
Target version:
Start date:
2012-08-08
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.7
PHP Version:
5.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Hi,

gifbuilder generates a wrong imagesize if a TEXT or BOX is unset by a if clause.

Take an image with a text element rendered by a gifbuilder.
Set the height of the image (XY) to the height of the image by using the calc+ function ( [10.h] ).
Now the image has same height as the text.

But if you remove the text with an if clause, the text is gone but the height of the image is wrong.

Please see example below:
page.10 = IMAGE
page.10 {
file = GIFBUILDER
file {
format = png
XY = [10.w],[10.h]+[20.h]
backColor = #ffffff
10 = TEXT
10 {
text = first
offset = 0, 72
fontColor = #000000
fontFile = fileadmin/fonts/arial.ttf
fontSize = 100
}
20 = TEXT
20 {
text = second
offset = 0, [10.h]+72
fontColor = #000000
fontFile = fileadmin/default/fonts/LinotypeDidotItalic.ttf
fontSize = 100
if.isTrue.listNum = 3
}
}
}

Actions

Also available in: Atom PDF