Issue Feature Closed

#39638respect box width and height in gifbuilder imagesize

Kjeld Schumacher 08/09/12, 11:08 updated 05/03/16, 09:37

Description

Hi,

this feature adds the possibility to use the BOX width and height dimensions in gifbuilder imagesize calculation.

At this time TYPO3 does not take the dimensions into account due to the lack of the BoundingBox attribute in the gifbuilder calcOffset function.

The solution is pretty simple, add the missing BoundingBox attribute at the beginning of image creation. Just use the calcOffset function to calculate the BOX width and height and add the result to the BoundingBox attribute.

list($x, $y, $width, $height) = explode(',', $conf['dimensions']);
$this->objBB[$theKey] = explode(',', $this->calcOffset($width . ',' . $height));
break;

Reviews 1