Make WordPress Core

Opened 12 years ago

Last modified 4 weeks ago

#17247 new enhancement

Crop tool is automatically selected when editing an image

Reported by: andrewspittle's profile 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 4 years ago.

Download all attachments as: .zip

Change History (10)

#1 @scribu
12 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 12 years ago by scribu (previous) (diff)

#2 @ericlewis
9 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
8 years ago

  • Keywords needs-patch added

#5 @mikeschroder
7 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.

6 years ago

4 years ago


#7 @nickylimjj
4 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
2 years ago

Related: #48754, #52221.

Last edited 2 years ago by SergeyBiryukov (previous) (diff)

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

4 weeks ago

Note: See TracTickets for help on using tickets.