Domain Change with New Image Sizes

I am migrating domains and redesigning the site at the same time. My large image sizes are different than they were before. When I imported the old posts, I had it download all the images as well. My problem is that the images that were inserted with the old file size name. Is there a way to replace all of the images with the correct new image sizes? I just want it to use the default ‘large’ size, even though it is different than the original site.

In post html:

Screen-shot-2010-11-30-at-8.03.27-PM-540×287.png

Read More

Actual image sizes:

Screen-shot-2010-11-30-at-8.03.27-PM-525×279.png

Screen-shot-2010-11-30-at-8.03.27-PM-615×327.png

Related posts

Leave a Reply

1 comment

  1. Use plugin Regenerate Thumbnails to resize thumbnails.

    Edit:

    Try use filter “the_content” to convert in post content.

    <?php
    
    function foo ( $content )
    {
        return preg_replace ('/540x287/', '525x279', $content);
    }
    
    add_filter( 'the_content', 'foo' )
    

    Filter “the_excerpt” if need convert excerpt too.