Actions
Bug #70850
closedImage Manipulation crop setting returns a negative Y when it is set to 0
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
File Abstraction Layer (FAL)
Target version:
-
Start date:
2015-10-19
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
7
PHP Version:
5.5
Tags:
Complexity:
Is Regression:
No
Sprint Focus:
Description
When the manipulation tool is used and a Y is set to 0 (against the edge) the image does not shown in the front-end anymore.
This seems to cause because the Y is saved as a negative float:
var_dump(json_decode($object->getImage()->getOriginalResource()->getReferenceProperty('crop')));
Results in:
object(stdClass)[2350] public 'x' => int 0 public 'y' => float -0.0061452118357881 public 'width' => int 512 public 'height' => float 384.13719185423 public 'rotate' => int 0
When setting Y manually to 0 the image is processed correctly again.
Actions