Project

General

Profile

Actions

Bug #70850

closed

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

Added by Arek van Schaijk over 8 years ago. Updated almost 8 years ago.

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 #1

Updated by Arek van Schaijk over 8 years ago

For the record: this seems to affect all 7.x branches, I tested it with 7.4 and 7.5.

Actions #2

Updated by Arek van Schaijk over 8 years ago

Can this one get fixed in 7 LTS? I do have multiple customers who are dealing with this problem otherwise I need to make my own workaround for it...

Actions #3

Updated by Riccardo De Contardi almost 8 years ago

  • Status changed from New to Closed

I am not able to reproduce it with both 7.6.6 and the latest master (8.2-dev) using the standard text with media CE, so I close this for now.

If you think this is the wrong decision or experience the issue again or there are other tests that should be performed, then let us know (on Slack for example - https://typo3.slack.com/ ) or open a new ticket and add a relation to this ticket number. Thank you

Actions

Also available in: Atom PDF