Issue Bug Closed

#70850Image Manipulation crop setting returns a negative Y when it is set to 0

Arek van Schaijk 10/19/15, 17:14 updated 05/08/16, 16:26

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.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.