Image Size dialog box disappears from the Image Settings
I am having a very strange issue. I cloned my website and installed it locally because I wanted to change the image sizes and rebuild my thumbnails.
On the version of my website that is live on my server when I click on an image, I get an option in the right-hand sidebar to change the image size. See the screenshot below:
However on my local copy that I cloned that option is missing. See the screenshot of the exact same post from the local copy:
At first, I thought that something had happened to the site I cloned. Perhaps when I rebuilt the image sizes. However looking at old posts on my live site I find a lot of instances where selecting an image block will not give me the option to change the image size. It seems to that there are three different variants:
1 ) Alt Text + Change Image Size 2) Alt Text 3) Alt Text + Option to change image dimensions
I have no clue when or why I am presented with any of these. This is really awful and should be fixed.
Would it be possible for you to compare the HTML for an image from the live site and the cloned site to see if the HTML is different? You can see the HTML by clicking the More menu in the very top right toolbar and then selecting the "Code Editor" option.
I cloned my website and installed it locally.
How exactly did you clone the site? Can you list out your steps for that?
I used Duplicator to make a copy and installed it on my localhost. My plan was to rebuild the image sizes locally since I have a lot of photographs and then replace the version on my web server with the local copy.
But it's not just that there are discrepancies between identical posts on the real site and the clone site. I can open a post with multiple images and clicking on the various image blocks will produce a different result as I go through the page. It makes no sense and I never know what I am going to get.
Look at these screenshots, all from the same post. I will scroll through and click on each of the images.
The first image in the post, click on the image block and the panel on the right only has an option for the alt text. The image is set to wide alignment by the way.
Scroll down a bit to the second image in the post, also set to wide alignment and it has Alt Text and Image Size options.
Scroll down further to another image in the post and we are mysteriously back to just having the Alt Text option.
Then finally on the final image in the post, we get Alt Text and Image Dimensions. Just to change things up a bit.
This is confusing as hell. Clicking an image block should produce the same settings in the Image Settings panel each time. Alt Text, Image Size, and Image Dimensions should all be present each and every single time in my opinion.
Playing around with it seems like the Image Dimensions option come up when an image is given a center alignment. However, the Image Size dialogue remains a mystery. It often appears when you initially add an image, but after that you never know if you will see that option when clicking on an image block.
Thank you for the extra information. To confirm, the problem only happens for a local copy of a site created with Duplicator and the image block settings are consistent and working as expected on the live site, is that correct?
@designsimply No, it occurs on my live site too. Especially on older posts that were made pre-Gutenberg and then converted to Gutenberg blocks and updated.
If you look at my previous post those screenshots are from a post I made on December 30th, 2017 which I then updated to Gutenberg once the 5.0 release was approaching.
When I click on some of the various image blocks in that post I get different options in the Image Settings panel. Sometimes just Alt-Text (this is the most annoying one), sometimes Alt-Text + Image Size, and sometimes Alt-Text + Image Dimensions.
There is no consistency and as a user, I definitely do not understand why I am seeing varying versions of the Image Settings panel. I would expect one Image Settings panel that consistently displays when you click and select an image block. If there are multiple versions of the image settings panel then I would expect there to be logic behind it that is easily understandable.
I'm going to close this issue now as we've been unable to reproduce this issue. I think the difference in your installs is the timing between the image size thumbnails definition and the upload of the said image.
A plugin like this https://wordpress.org/plugins/regenerate-thumbnails/ would make the experience consistent by regenerating all the required thumbnails for all the images.
It has happened to me right now
In my local copy I do see the Image Size option, I've created an identical site online (both WP 5.5), and I've created the same posts with the same image dropped there
In my online site I cannot see the Image Size option in the gutenberg block
Still looking to see what can be the problem, @MichaelCampanella did you find out what happened?