Describe the bug
An image added to an Image block has the wrong Image Size in Block Settings. It shows as Thumbnail instead of Full.
When the image size is changed in the dropdown, the image changes size in the Gutenberg editor but when the post is published all images are full size.
Related issue: https://github.com/WordPress/gutenberg/issues/8663
Setup: WordPress 4.9.8
Theme: Twenty Sixteen
Active Plugins:
Theme Unit Test Data imported.
To Reproduce
Insert an image and change the size of it to Thumbnail or another size. Publish the post.
Expected behavior
Image Size should be Full on addition to an image block in the Block settings.
Screenshots
If applicable, add screenshots to help explain your problem.





Desktop (please complete the following information):
Should we close one of these two issues #8663? Seems like the same thing to me.
I think #8663 is the same, but not as well described, because the behavior is tricky to pin down. I was noticing this issue also, where the Image Size field showed Thumbnail, but the image in the editor was very clearly not the thumbnail. When I saved, it was the Full version of the image.
That was a few days ago, and then today I tried it again, and the same thing happened. But then I disabled EWWW IO, and the problem went away.
In particular, I've discovered that the ExactDN parser does something which causes this behavior. The common denominator with the original report is the JetPack plugin, as their Photon option was the base upon which ExactDN is built.
The problem is related to the image_downsize filter, which is normally suppressed (in both Photon and ExactDN) by a call to is_admin(), but Gutenberg doesn't use admin-ajax, it uses the REST API, which doesn't send any signals about being in wp-admin.
So, it appears there are two issues:
I've already implemented a fix in EWWW IO for ExactDN, I'll be pinging the JetPack team about Photon, but in the meantime this remains as a bug, since there could be other plugins that trigger it. And you can reproduce it simply by enabling Jetpack with Photon and then inserting an image to the editor.
I'll be pinging the JetPack team about Photon
Thanks a lot for the warning! We'll be taking a look at this here:
https://github.com/Automattic/jetpack/issues/10580
I'm closing as this seems fixed upstream.
Most helpful comment
I think #8663 is the same, but not as well described, because the behavior is tricky to pin down. I was noticing this issue also, where the Image Size field showed Thumbnail, but the image in the editor was very clearly not the thumbnail. When I saved, it was the Full version of the image.
That was a few days ago, and then today I tried it again, and the same thing happened. But then I disabled EWWW IO, and the problem went away.
In particular, I've discovered that the ExactDN parser does something which causes this behavior. The common denominator with the original report is the JetPack plugin, as their Photon option was the base upon which ExactDN is built.
The problem is related to the image_downsize filter, which is normally suppressed (in both Photon and ExactDN) by a call to is_admin(), but Gutenberg doesn't use admin-ajax, it uses the REST API, which doesn't send any signals about being in wp-admin.
So, it appears there are two issues:
I've already implemented a fix in EWWW IO for ExactDN, I'll be pinging the JetPack team about Photon, but in the meantime this remains as a bug, since there could be other plugins that trigger it. And you can reproduce it simply by enabling Jetpack with Photon and then inserting an image to the editor.