-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
in Image Block the image size in drop down is not proper as per image dimension #27198
Comments
Thank you very much for adding this issue, @kmadhak Kunal! I am testing on a Mac running OSX 10.15.7 I made a new page. Clicked the inserter. Added an Image block. Added an image with dimensions 2560 x 1707. I tested another image with dimensions 1600x1200. It came in as a Large image. Deactivating the Gutenberg plugin. I see the same result. Please retest and let us know how it is working. Do also test out Twenty Twenty or Twenty Twenty One themes to see if you get the error there. Then test the theme you are using to see if there is any difference. Thank you! |
Hello @paaljoachim paaljoachim, Thanks for the replay. I have checked with the WordPress version 5.6 in a theme "Twenty Twenty One" and "Twenty Twenty" and it is regenerating, for more detail please view the attached video. Video with Twenty Twenty One theme: https://www.loom.com/share/c174a279a3db4ceca27916ddb6ce4a01 Video with Twenty Twenty theme: https://www.loom.com/share/46d25802113a41bfa9873f7f538f2fbf Please look into it and let me know if you have any query. Thank you. |
Thank you @kmadhak Kunal! Some examples. Adding a 758x411 image. (I also tried with a 600x600 image with the same result.) Using theme Twenty Twenty. Btw |
I ran into this issue today. Running 5.7 with a child theme of Twenty Twenty. It feels like it might be a regression from #21681 |
Thanks for reporting it, Mark! @jeyip Jeremy. I went to an existing page. Bottom line as I noticed it is that adding a smaller image. The layout will show a large image but the drop down will say thumbnail. |
Same issue here, was fixed before in #21681. Also can I just check, should the sizes in the image block for Thumbnail, Medium, Full Size be the same as in WordPress > Media settings or are they different sizes unique to the block? On my installation they don't match. |
I also noticed this and was able to track down the source of the issue. Incorrect image size is selected when WP doesn't generate an image for the default size, and usually, this is a The TL;DR - If WP didn't generate the default image size, the I'm not sure what's the best solution for this, but I will create PR as soon as I've something. |
PR is ready for testing #32364. |
Hello @george Mamadashvili, Greetings of the day!!! I would like to know the progress of this issue, please let me know if you need more detail on it. Thank you. |
Hi, @kmadhak The PR is ready and waiting for a review. |
Describe the bug
in Image Block the image size in drop down is not proper as per there dimension
Steps to reproduce the behaviour:
Expected behaviour
selection of image size in drop down should be as per image dimension
Video
for more detail please view the attached video
https://www.loom.com/share/856447be04f644939b184032969d5de8
Editor version:
WordPress version: 5.6-RC1
Desktop:
OS: Windows
Browser chrome
Version 86.0.4240.193 (Official Build) (64-bit)
The text was updated successfully, but these errors were encountered: