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
- Remove P tags from images
- Any easy way to automatically set the first inline image in a post as the thumbnail?
- Upload multiple images in a custom metabox
- WordPress speed slow after .5 million single image post via wp-cli
- How to add php to theme to show alt attributes
- Why won’t these imported images show up?
- Remove rel=”attachment wp-att-XX”
- Using Taxonomy Image code with my get_categories code
- Upload thousands of images to WordPress without plugin?
- Images in the Twenty Fourteen theme
- Any specific reason why images do not show on site?
- Bulk edit of EXIF data for jpeg images uploaded in the media library?
- Add new image block, set default class name and update it using Javascript
- Scaling images for mobile
- How do I fix “Sorry, this file type is not permitted for security reasons”
- Image LazyLoad plugin not loading jQuery dependancies with wp_enqueue_script in WP 3.3.1
- How to make thumbnails of uploaded animated gifs NOT animated
- Frontend Image Upload
- Multiple variables through wp_get_image_editor
- Rewrite inline image markup
- URL through custom field returning null
- Local install not loading template images but is loading everything else XAMPP
- Display cropped thumbnail not featured image
- Hide image gallery in Woocommerce if NO image [closed]
- All 3?: Responsive resizing of images + image width of actual image for small images + max-width for all larger images
- How to get the cropped image from media library?
- wordpress makes duplicate images of different size
- Responsive Images from S3 has no srcset
- How to only show div of caption if caption exists on featured image
- How to “lazy load” post thumbnail
- Landing Page with HTML CSS JS and Images on wordpress
- Change Image URL on upload to some random number automatically
- Image title replace with current date
- WordPress Responsive Image ( srcset ) not work properly
- Why does wp_get_attachment_image_src return the wrong size, when the correct size exists?
- Responsive Images in WordPress
- Get image from one page and show/add it on another page
- Featured image on page set as “Posts page” in Settings > Reading
- problem with updating metabox of upload image
- Adding Image Description below Images Inserted into Posts
- Using file extensions in image titles
- Media upload in add comment meta box
- Create post thumbnails from images stored outside of uploads directory
- How do I insert a photo at the top of the sidebar?
- If image width bigger than height [duplicate]
- if user role is x – show image – wordpress
- Understanding images handeling
- Best practice for WordPress media image use