Make WordPress Core

Opened 5 years ago

Last modified 3 years ago

#23436 new defect (bug)

Media Gallery - Cropping Image and then Cropping a thumbnail from that crop doesn't work.

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


A recipe for repeating the bug behavior:

Navigate to Library in the admin sidebar.

Click "Add new".

Drag the 800x480 copy of this or any image to the drag and drop area:


(I suggest this image for ease of recipe duplication and best explanation.)

After the blue status bar has completed, "Edit" to bring the media edit window up in a new tab.

Click "Edit Image" below the actual image.

Drag anywhere inside the image to create a cropping box.

In the "Image crop" pane, set the crop area to 500px width, 100px height.

Drag the cropping box so that the fancy toothpick is as far left as possible along the horizontal axis of the cropping box, but centered vertically.

Click the "Crop" icon. Click "Save". Click "Update".

Click "Edit Image" once again.

Drag inside the newly-cropped image again to create a new cropping box.

In the "Image Crop" pane, change the cropping dimensions to 150 x 100.

Drag the box so the fancy toothpick is somewhere in the left third within the crop boundary.

Important: In the thumbnail settings pane, set "Apply Settings to:" Thumbnail.

Click the "Crop" icon. Click "Save". Click "Update".

Click "Library" in the admin sidebar.

The newly preferred thumbnail for our previously-cropped image does not save. Thumbnail remains default, based on center of previously-cropped image. Instead, you will see a small wheel of cheese sliced into six wedges with garnishes for the thumbnail, even though we chose the part with the fancy toothpick.

Change History (2)

#1 @markoheijnen
5 years ago

  • Severity changed from normal to minor

The bug can be explained in the way that when you crop an image that small the edited full image will be the thumbnail. So no need to have two images. The whole flow of editing images needs to be revisited. There are a lot of weird thing going on.

#2 @chriscct7
3 years ago

  • Severity changed from minor to normal
  • Version changed from 3.5.1 to 3.5
Note: See TracTickets for help on using tickets.