gutenberg icon indicating copy to clipboard operation
gutenberg copied to clipboard

Unable to crop images in Media Library

Open thatdevgirl opened this issue 7 years ago • 13 comments

Describe the bug I am unable to crop images in the Media Library. I am able to edit the image, but if I make any changes to crop the image, the "Save" button remains disabled, so I am unable to save my changes.

To reproduce Steps to reproduce the behavior:

  1. Go to the Media Library in the admin.
  2. Select an image and click "Edit Image" underneath the image.
  3. Click the "Crop" button.
  4. Select the portion of the image that you want to keep after the crop.
  5. Attempt to save. Note that the "Save" button is disabled.

Other things I tried: Changing the aspect ratio, pressing enter, double-clicking inside the selected portion of the image.

I do not see any errors or warnings in the dev tools console.

Screen capture edit-image

Expected behavior I expected to be able to save my changes to the image.

Environment:

  • OS: MacOS
  • Browser: Chrome (latest)
  • Wordpress core 5.2.4 (version of Gutenberg is whatever version is packaged with core v 5.2.4).

thatdevgirl avatar Oct 17 '19 20:10 thatdevgirl

Hi there @thatdevgirl ! Thanks for making this issue. I just happened to have done work recently to bring this frame back to the modal, so this issue caught my eye. :)

I did some testing and was seeing the same behavior! It turns out, this is a ticket that we have open currently Core side.

I also found that it does work if you click the crop icon again after selecting your area. After clicking the crop icon, you should get the Save button able to be selected.

I'll admit, that's something I hadn't known about the crop tool so thanks for making this issue. I see we have it milestoned for a future release. Will keep my eye on it. Let me know if clicking the icon works and I'll close this one in favor of the trac ticket.

anthonyburchell avatar Oct 17 '19 23:10 anthonyburchell

Can we close this in favor of the core ticket since this is working as "expected" and not specific to Gutenberg?

swissspidy avatar Oct 18 '19 16:10 swissspidy

HI @anthonyburchell! Thank you for the tip! That does work for me - clicking the crop button again.

To be honest, I didn't even think to look for a core ticket because it is something my team noticed only with Gutenberg. (One of my colleagues noted that this is not an issue when using the core editor.) So, we figured it was a Gutenberg issue.

We can close this issue in favor of the core ticket.

thatdevgirl avatar Oct 18 '19 16:10 thatdevgirl

Well, thankfully I googled this. Itʼs over a year and a half later and I was flummoxed by this issue. Thankfully the unintuitive behaviour of clicking Crop, then cropping, then clicking Crop again does the trick.

briantw avatar May 02 '21 17:05 briantw

Had to google this as well. All I can say is that this didn't work as I "expected".

sommerper avatar May 11 '21 21:05 sommerper

yeah still not intuitive, thanks for this ticket

azatecas avatar May 13 '21 21:05 azatecas

How is this bad UX still not fixed...

deanoakley avatar May 24 '21 06:05 deanoakley

Hello from 2022, still not fixed.

JeremyWasHere avatar Feb 12 '22 01:02 JeremyWasHere

absolutely annoying, need to be fixed... 2022 and still going

gillmourtunhira avatar Mar 29 '22 22:03 gillmourtunhira

absolutely annoying, need to be fixed... 2022 and still going

The Wordpress Core issue was also merged and closed as complete. Yet, the crop + save button use case was missed, which was enumerated in the defect description as such:

To save and apply the crop there should be one prominent button called "Apply crop" (currently the user needs to click on the crop tool again, which makes no sense and none of our test users could figure it out)

duke-mediavine avatar Apr 20 '22 00:04 duke-mediavine

This is still unbelievably unsolved.

guidofd avatar Jul 20 '22 16:07 guidofd

WordPress - WTF?

gavin310 avatar Sep 21 '22 15:09 gavin310

Still not fixed, it seems ... ! Thankfully I was able to use the workaround described.

rJonatan avatar May 31 '23 11:05 rJonatan