Make WordPress Core

Opened 11 years ago

Last modified 13 months ago

#17247 new enhancement

Crop tool is automatically selected when editing an image

Reported by: andrewspittle Owned by:
Milestone: Future Release Priority: normal
Severity: normal Version:
Component: Media Keywords: needs-patch has-screenshots
Focuses: ui, javascript Cc:


The crop tool is automatically selected when editing an image with the built-in tools. This can be confusing as the crop button is greyed out and inactive by default.

To reproduce:

  1. Create a new post or page
  2. Upload an image
  3. Click the Gallery tab
  4. For the image you uploaded click "Edit Image"

The crop tool will be automatically selected. If you drag the mouse over the image it will select an area to crop.

A more intuitive behavior would be to have none of the editing tools selected by default.

Currently, the next step is presumed when you click "Edit Image." It would be better to leave the next step up to each user so that clicking "Edit Image" didn't imply a default action.

Attachments (1)

wp-image-crop-default.png (419.3 KB) - added by nickylimjj 2 years ago.

Download all attachments as: .zip

Change History (9)

#1 @scribu
11 years ago

  • Keywords needs-patch added
  • Milestone changed from Awaiting Review to Future Release

Makes sense. Normal image editors don't display this behaviour either.

Last edited 11 years ago by scribu (previous) (diff)

#2 @ericlewis
8 years ago

  • Keywords needs-patch removed

Unless we've got some low hanging fruit here, the image editor needs a complete UI overhaul.

#3 @chriscct7
6 years ago

  • Keywords needs-patch added

#5 @mikeschroder
5 years ago

  • Focuses ui javascript added

I don't think that this feature needs a complete overhaul to fix this particular bug, and would love to see it fixed separately.

This ticket was mentioned in Slack in #core-media by mike. View the logs.

5 years ago

2 years ago


#7 @nickylimjj
2 years ago

  • Keywords has-screenshots added

Working on this ticket from WordCamp Singapore 2019. Uploaded screenshots to show the situation. Anyone knows where in the code/file sets the crop tool by default?

#8 @SergeyBiryukov
13 months ago

Related: #48754, #52221.

Last edited 13 months ago by SergeyBiryukov (previous) (diff)
Note: See TracTickets for help on using tickets.