U4-11615 - ImageCropper treats crop as a resize if aspect ratio is same as source image

Created by Lee Cichanowicz 05 Sep 2018, 17:27:56 Updated by Sebastiaan Janssen 06 Sep 2018, 13:44:15

I have discovered that the ImageCropper, in the backoffice, behaves like a resizer if the crop size is defined with the same aspect ratio as the original image.

Scenario: I have three crops defined.

first 200(w)x400(h)

second 400(w)x400(h)

third 400(w)x200(h)

If I view a Media image that was uploaded at 800x800, and move the focal point around, the first and last crop update their previews to reflect the new focal point--however, the 400x400 "crop" never changes, because it is actually shown as a scaled down resize of the original. Since it contains the full image, scaled down, the focal point movement makes no difference. This is not a crop; it is a resize.

I should be able to make a true ''crop'' of the original that happens to be the same aspect ratio.

Note in my example, that the "half" crop is a resize, not a crop.

In addition, when I click on the "half" "crop", I cannot move the image within the cropper area unless I zoom in. (see attached picture)

If I zoom in, I can move it, but I should not have to zoom in. I'm trying to make a crop that is half the height and half the width of the original, which should give me plenty of image area to crop.

3 Attachments

Comments

Sebastiaan Janssen 06 Sep 2018, 13:43:04

FYI: we're almost done completing the move to the new issue tracker as announced here: https://umbraco.com/blog/a-new-take-on-the-umbraco-issue-tracker/

I am closing the issue here on the old issue tracker, but it will continue on the new issue tracker. The new link is: https://github.com/umbraco/Umbraco-CMS/issues/2928 On GitHub, in the right-hand column, you'll find a "subscribe" button to be notified about updates to this issue.


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions: 7.10.4

Due in version:

Sprint:

Story Points:

Cycle: