A WordPress utility script that automatically converts full-resolution images in Gutenberg blocks to optimized sizes (medium or large).
This script scans all posts in your WordPress site and finds Gutenberg image blocks that are using full-resolution images. It then converts them to use a specified size (medium or large), updating both the image URL and block attributes.