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
- Image size not showing up in ‘wp/v2/media’
- How to add images inside an item of a list in Gutenberg
- Extend the list view in gutenberg editor?
- WP_Image_Editor – How to save the new size of the image in the sizes metadata
- How to get WordPress to resize images for srcset?
- How to search for replacement titles and contents, excluding image URLs
- How to give path to image in wordpress?
- Remove one srcset entry from wp_get_attachment_image
- Attachment tag archive
- Images have dissapeared from media library and site
- Using medium_large image size
- How to return responsive images from a sanitize_callback?
- image_get_intermediate_size always returns false
- Change of displayed images for webp versions
- How to disable Right Click on a image? [closed]
- Is there a way to add background-image to theme.json?
- How to have the frontend show the appropriate image size?
- Uploading media to wordpress API with C# HttpClient
- How to add image alt attribute to the thumbnail code
- How to get dimension of Logo and Crest
- Can’t upload svg files in WordPress
- Is is possible to append .webp to srcset images using wp_filter_content_tags()?
- Random images from uploads folder and subfolder
- WordPress Missing Images
- Could a very long article slow down all website and wpadmin?
- Edit multiple posts featured image
- Generate / attach Image srcsets from ACF Image Field
- Display first image’s caption
- Is there a way to upscale a media library original image to the nearest whole pixel in WordPress?
- The uploaded images are only full-size (original)
- Make Jetpack CDN to filter/ignore images based on SRC [closed]
- Images uploaded in customized gallery do not link to media
- changing option for all posts
- images map on website not working
- How to make Media Library files private?
- How to add embed image in comments?
- WordPress Site Broken and it gives Headers Already sent error
- WordPress + REST API + featured_image
- Set srcset on a block image
- Some images not loading after changing IP on local wordpress install
- Disable image compression for WebP
- Blurry Images on my Website
- Media Library Issues
- How do I add text or a message below the featured image in wordpress?
- Fix position of an image while using elementor pro gallary widget
- Neither intermediate_image_sizes_advanced or intermediate_image_sizes filter is firing
- CSS how to target the caption of one individual image?
- Convert all img tags into amp-img in wordpress content area
- All WordPress Website Images Broken
- After importing using wordpress importer, posts in duotone theme do not pick up background colours from image