WordPress.org

Make WordPress Core

Opened 9 months ago

Last modified 9 months ago

#24888 new defect (bug)

Image cropping does not scale correctly

Reported by: diegomarangoni Owned by:
Milestone: Awaiting Review Priority: normal
Severity: critical Version: 3.5
Component: Media Keywords:
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 (3)

comment:1 in reply to: ↑ description diegomarangoni9 months 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: alexvorn29 months ago

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

comment:3 in reply to: ↑ 2 diegomarangoni9 months 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.

Note: See TracTickets for help on using tickets.