Issue Bug Closed

#89191ImageManipulationWizard looses precision on large images

Jako Danar 09/17/19, 17:19 updated 01/16/20, 13:53

Description

Description
When cropping an image larger than 1000×1000 pixels the ImageManipulationWizard may loose precision on the selected size.
E.g. you select a width of 1200 pixels from an 1920×1080 image, after saving the selected width is only 1198 pixels.

Steps to reproduce
  1. Upload an image with at least one dimension larger than 1000px
    (use full hd or similar to see the effect more easily)
  2. Create a content element of type “images”
  3. Add the uploaded image to that element
  4. Open the image manipulation editor
  5. Select a cropped area, note down the selected size
  6. Click “Accept” to save and close
  7. Open again in backend and compare the new selected size with the previous one

Expected behavior
Selected size stays the same even after saving

Actual behavior
Selected size changes after saving

Note
It seems this bug was introduced while fixing https://forge.typo3.org/issues/80157

Reviews 0

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