Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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-540x287.png

Actual image sizes:
Screen-shot-2010-11-30-at-8.03.27-PM-525x279.png
Screen-shot-2010-11-30-at-8.03.27-PM-615x327.png

share|improve this question
add comment

1 Answer

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.

share|improve this answer
    
That's not the problem. I want to use my new 'large' size instead of the old sizing. It's not a question of having the right sized images, it's a question of having the html in all my posts pointing to the old size. –  Derek Perkins Mar 14 '11 at 18:02
    
I add solution. –  Marcin Mar 14 '11 at 20:29
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.