It seems that this regex does the trick:
wp search-replace '(<!-- wp:image\s{(?!.*"sizeSlug")[^}]*)' '$1,\"sizeSlug\":\"full\"' wp_posts --regex --regex-delimiter="https://wordpress.stackexchange.com/" --precise
EDIT:
I added correction, double quotes must be escaped in replacement string in order for this to work properly. It seems that everything is first encoded in json, hence the reason.
ANOTHER EDIT:
This did the trick by updating post content by adding attribute, but srcset and sizes are still missing.
Related Posts:
- Multisite image URLs incorrect in editor
- How to extend the gallery block in Gutenberg?
- Set default image link target in Gutenberg image block
- WordPress adding scaled images that don’t exist (1536×1536 and 2048×2048)
- get_post_gallery with Gutenberg
- Change html structure of all img tags in WordPress
- How to include externally hosted images into a gallery block
- Apply image width to tag
- How to link Gutenberg Gallery images To Media file automatically?
- Regex to turn embedded images in to attachments
- Change html structure of all img tags in WordPress
- get attributes/part of the gallery shortcode
- How to Add extra option to Image Block Settings?
- @wordpress/create-block image url in css
- Get original image from thumbnail URL
- How to remove buttons from gutenberg toolbar
- Extend core block attributes in post content
- Gutenberg editor get post featured image by id
- hardcrop images in gutenberg “latest posts” block
- Bulk edit Gutenberg single images to change from linking to media file to attachment page
- Trying to create a mouseover effect in html using Gutenberg editor
- Prevent Image Pasting in RichText Component
- Regex expression for redirecting image URLs to another folder
- Multiple amp-image overlays. How to properly do this in wordpress?
- Update an image block style programatically
- Add width & height attributes to Gutenberg’s image output?
- update_post_meta attachment_image_alt description for Gutenberg
- How to get the Gallery form/section just like in Gutenberg block?
- Is there a wordpress filter to edit the markup of inline images?
- How to upload and style svg logo?
- Weird failing request
- How can I check if the first block is an image aligned left or right?
- Not seeing text alignment option in Image block
- Photos automatically uploaded to Media Library
- Place image caption outside of figure tag (Gutenburg Image Markup)
- Change Image Size option in the settings in bulk
- How to disable a WP Image Block to link to itself?
- get_post_gallery with Gutenberg
- How to join Caption AND Description Meta Fields as one combined-caption in Image Block
- Using srcsets in a custom block
- Media Library Cleanup A Thought Exercise
- Rebuilding core image block
- A query to substitute images paths in gutenberg (website migration)?
- Convert multiple image blocks to gallery block in Gutenberg?
- get_post_gallery with Gutenberg
- Custom filename when pasting an image from clipboard
- Gutenberg block HTML image rendering override
- Replace image with its alt text?
- Get field added via attachment_fields_to_edit filter in Gutenberg
- Define how an attached image is rendered
- [Solved]: Extend the list view in gutenberg editor?
- get attachment title based on attachment id
- Media Upload Folder – how to manage
- Wrong image dimensions in Insert Media after add_image_size()
- PHP Fatal error: Call to undefined function download_url()
- Upload multiple images in a custom metabox
- How can I hide media library images from general users?
- How to add php to theme to show alt attributes
- Using Taxonomy Image code with my get_categories code
- Rename image during upload using date and time stamp?
- Images in the Twenty Fourteen theme
- Get author ID with attachment ID
- Show Post Excerpt in Image Attachement
- wp_get_attachment_url with specific image_size?
- In Wordress one author can not see the other’s author uploaded images through media library
- How to add missing dimensions to all images to avoid cls?
- Add new image block, set default class name and update it using Javascript
- Why are images created by WP larger than the original uploaded image?
- Replace image caption with its title and description
- Frontend Image Upload
- Multiple variables through wp_get_image_editor
- Removing featured image from gallery?
- Animated GIF on WordPress posts? [closed]
- how to put image and text on same line [closed]
- Different background images on different sites [closed]
- How to know what size image to use for background? [closed]
- Google Page Speed Insights – Optimize Images
- Partial img lazy load with WP 5.5
- Why doesn’t WordPress use the smaller sized image?
- What is required in the hosting environment for WordPress to process an image into multiple sizes?
- Moving an image to the side [closed]
- image upload/edit is broken: “Image data does not exist. Please re-upload the image.”
- How can we upload common images only to AWS S3 using WordPress?
- Deleted Image giving a 301
- Avatar picture is broken
- WordPress append -1 to the image name
- wpdb function for filtering the images by title
- Link to products with the same image title (woocommerce)
- WordPress does not load most theme images
- How to add featured image use HTML
- Correct color profile and saving? Thumbnail creation?
- Theme page headers and rotator images not assigned after website migration
- Create a custom attachment thumbnail for quick page load
- Change the image for a certain URL
- Post migration – images do not display
- wp_handle_upload Image sizes
- Display Images from Array with wp_get_attachment_image() [closed]
- Media Library Issues
- medium_large image size not displaying properly on the frontend?
- Featured Image add tab