Title: Changing all image sizes
Last modified: August 20, 2016

---

# Changing all image sizes

 *  [codydh](https://wordpress.org/support/users/codydh/)
 * (@codydh)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/changing-all-image-sizes/)
 * Hello!
 * I’m wondering if anyone knows of an easy way to change the image size in a bunch(
   200) posts? Basically they were all inserted as ‘full size,’ which generated 
   code such as:
 *     ```
       <a href="http://domain.com/wp-content/uploads/2012/01/granola.jpg">
       <img class="alignnone size-large wp-image-5023" title="Granola"
       src="http://domain.com/wp-content/uploads/2012/01/granola.jpg"
       alt="" width="640" height="426" /></a>
       ```
   
 * But what I really want is:
 *     ```
       <a href="http://cvps.codydehaan.com/wp-content/uploads/2012/01/granola.jpg">
       <img src="http://cvps.codydehaan.com/wp-content/uploads/2012/01/granola-1024x682.jpg"
       alt="" title="Granola" width="640" height="426"
       class="alignleft size-large wp-image-5023" /></a>
       ```
   
 * Anyone know of anything that can help me out with this? Thank you!

Viewing 10 replies - 1 through 10 (of 10 total)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/changing-all-image-sizes/#post-2517743)
 * [http://wordpress.org/extend/plugins/search-and-replace/](http://wordpress.org/extend/plugins/search-and-replace/)
 *  Thread Starter [codydh](https://wordpress.org/support/users/codydh/)
 * (@codydh)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/changing-all-image-sizes/#post-2517774)
 * Unfortunately that won’t work, because each image file has slightly different
   dimensions, and so just replacing them with a set string of text won’t work. 
   What I really need is a plugin that can go in and fix the img src’s.
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/changing-all-image-sizes/#post-2517777)
 * Maybe with css?
 *     ```
       #content img {
           max-width: 640px;
           height: auto;
       }
       ```
   
 *  Thread Starter [codydh](https://wordpress.org/support/users/codydh/)
 * (@codydh)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/changing-all-image-sizes/#post-2517778)
 * Ah, right, this is a good solution for the display (although that’s not the issue).
   The problem is that the full resolution images are like 2MB, whereas the resized‘
   thumbnail’ is like 256kb, so just HTML/CSS-resizing the images really slows down
   the page loads.
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/changing-all-image-sizes/#post-2517780)
 * I’ve never seen anything that can change your given embed code.
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/changing-all-image-sizes/#post-2517781)
 * might be worth checking out:
 * [ncode-image-resize](http://wordpress.org/extend/plugins/ncode-image-resizer/)
 *  Thread Starter [codydh](https://wordpress.org/support/users/codydh/)
 * (@codydh)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/changing-all-image-sizes/#post-2517784)
 * Right now it looks like what has worked is doing an export.
 * I then find-and-replaced all size-full with size-large in the export file.
 * Then I modified the WordPress code as per this: [http://www.doc4design.com/articles/wordpress-better-naming-of-thumbnails/](http://www.doc4design.com/articles/wordpress-better-naming-of-thumbnails/)
 * So now all of the large thumbnails, regardless of their actual resolution, will
   be called imagename-large.jpg
 * And finally, once this big import is complete, I’ll do a SQL search through the
   database and replace the src=”…imagename.jpg” with imagename-large.jpg
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/changing-all-image-sizes/#post-2517790)
 * Sounds like a plan.
 *  Thread Starter [codydh](https://wordpress.org/support/users/codydh/)
 * (@codydh)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/changing-all-image-sizes/#post-2517799)
 * Just wanted to report back that this works!
 * Perhaps this would be a good suggestion for the Import coders to make something
   along these lines an option by default, or perhaps that WordPress should use 
   something other than hard URLs when inserting images?
 *  [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * (@deepbevel)
 * [14 years, 3 months ago](https://wordpress.org/support/topic/changing-all-image-sizes/#post-2517814)
 * Nice, Glad you solved it.
    WordPress does have a way to get around hard coding
   individual image sizes, I’ve always used the galleries and auto generated attachment
   images which do have global size settings. Gallery plugins like NextGen also 
   extend managenment of large numbers of pics.

Viewing 10 replies - 1 through 10 (of 10 total)

The topic ‘Changing all image sizes’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 10 replies
 * 3 participants
 * Last reply from: [deepbevel](https://wordpress.org/support/users/deepbevel/)
 * Last activity: [14 years, 3 months ago](https://wordpress.org/support/topic/changing-all-image-sizes/#post-2517814)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
