WordPress.org

Make WordPress Core

Opened 2 years ago

Last modified 14 months ago

#24888 new defect (bug)

In image editor, cropping scale gets applied off by 0.4%

Reported by: diegomarangoni Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords: needs-patch
Focuses: Cc:

Description

When you scale the crop preview, the editor does not keep the right ratio.

To reproduce this error:

  • Upload an image with 4608 x 3072
  • On the crop feature, create an selection with 1680 x 560
  • Hold shift and scale to fit all image width (4608px)
  • The height result was 1544px, that is wrong, the correct is 1536px.

Change History (4)

comment:1 in reply to: ↑ description @diegomarangoni2 years ago

Tested on MacOS 10.8 with the following browsers:

  • Chrome Version 28.0.1500.71
  • Safari Version 6.0.5 (8536.30.1)

comment:2 follow-up: @alexvorn22 years ago

4608/1680 * 560 = 1536
this is how the number come from...

comment:3 in reply to: ↑ 2 @diegomarangoni2 years ago

Replying to alexvorn2:

4608/1680 * 560 = 1536
this is how the number come from...

I tried with an fresh install of WP and keep having same error.

Tested with Chrome and Safari.

comment:4 @ericlewis14 months ago

  • Keywords needs-patch added
  • Severity changed from critical to normal
  • Summary changed from Image cropping does not scale correctly to In image editor, cropping scale gets applied off by 0.4%

Confirmed. Not a big deal, I personally would rather see the whole image editor redone rather than fixing bug after bug found in it.

Note: See TracTickets for help on using tickets.