Make WordPress Core

Opened 11 years ago

Last modified 5 years ago

#24888 new defect (bug)

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

Reported by: diegomarangoni's profile diegomarangoni Owned by:
Milestone: Priority: normal
Severity: normal Version: 3.5
Component: Media Keywords: needs-patch
Focuses: administration 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 (5)

#1 in reply to: ↑ description @diegomarangoni
11 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)

#2 follow-up: @alexvorn2
11 years ago

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

#3 in reply to: ↑ 2 @diegomarangoni
11 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.

#4 @ericlewis
10 years 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.

#5 @chriscct7
9 years ago

  • Focuses administration added
Note: See TracTickets for help on using tickets.