Closed faisal-alvi closed 1 year ago
Hey, @faisal-alvi @jeffpaul, It looks like an issue with the WordPress crop feature itself, I tried updating the site icon in the customizer panel, and I see the same problem happening here too.
If I try to use a larger image in a smaller window size, the crop screen doesn't appear, and once I resize the window, the crop screen appears again.
SS - https://share.getcloudapp.com/8LuD4LWm
Could you please try testing it at your end and let me know if it breaks at your end, too? If that's the case, I might need to open an issue in the WordPress Trac.
Dimensions I faced an issue with.
Image size - 2560 by 1707 pixels Screen Size - 780 by 550 pixels
@ajmaurya99 thanks for the report. I have tested it as per your instructions and the crop issue is occurring in the customizer too.
@jeffpaul can you please follow up on the core ticket so this gets resolved sooner?
@ajmaurya99 @faisal-alvi curious what happens here in the Site Logo block?
@jeffpaul Site Logo block does not offer a crop feature inside the media library popup. It simply allows to choose an image, and the crop is performed like this:
Interesting that the Site Logo block does provide options to crop to a square and other aspect ratios. We don't need to get too fancy in handling this in the media library popup, but even a basic option to crop as square or freeform will probably suffice?
@jeffpaul Yes, we should provide (initially) 2 options: square and freeform. @cadic has already provided a suggestion on it in https://github.com/10up/simple-local-avatars/pull/130#issuecomment-1133242447, I will look into it. However, we need a design discussion, once I check the feasibility.
Created a separate ticket #131 to discuss this.
Seems like this is fixed in core, closing!
Describe the bug
The avatar crop feature was recently introduced in #83. It is noted that the crop area does not appear sometimes. Also noticed the behavior - when changing a window size slightly, the crop area appears!
Steps to Reproduce
Screenshots, screen recording, code snippet
https://www.screencast.com/t/PhQmfpPL7dO7
Environment information
WordPress information
No response
Code of Conduct