Actions
Feature #39638
closedrespect box width and height in gifbuilder imagesize
Status:
Closed
Priority:
Could have
Assignee:
-
Category:
Image Cropping
Target version:
-
Start date:
2012-08-09
Due date:
% Done:
0%
Estimated time:
PHP Version:
5.3
Tags:
Complexity:
Sprint Focus:
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;
Actions