Project

General

Profile

Actions

Bug #39625

closed

wrong imagesize in gifbuilder

Added by Kjeld Schumacher over 12 years ago. Updated about 7 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 #1

Updated by Gerrit Code Review over 12 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/13530

Actions #2

Updated by Gerrit Code Review over 11 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at https://review.typo3.org/13530

Actions #3

Updated by Gerrit Code Review almost 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/13530

Actions #4

Updated by Gerrit Code Review almost 10 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/13530

Actions #5

Updated by Gerrit Code Review almost 10 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35371

Actions #6

Updated by Gerrit Code Review almost 10 years ago

Patch set 2 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/35371

Actions #7

Updated by Kjeld Schumacher almost 10 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #8

Updated by Riccardo De Contardi about 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF