Title: Mapping image sizes
Last modified: April 11, 2020

---

# Mapping image sizes

 *  [The Three](https://wordpress.org/support/users/3wwwgr/)
 * (@3wwwgr)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/mapping-image-sizes/)
 * Hello there!
 * many themes and plugins are creating many image sizes
    so if a website has 600
   images with 11 size variations, we have about 11×600 = 6.600 images… i think 
   that these images are unnecessary so i removed some sizes with `remove_image_size('
   image_size_600x800' );`
 * now i have 4 variations
    thumbnail medium large full
 * but now wordpress cant find the “image_size_600x800” size, gives the “full”
    
   so i want to map the “image_size_600x800” to the “large” size
 * any idea?

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 2 months ago](https://wordpress.org/support/topic/mapping-image-sizes/#post-12663477)
 * What is possible depends on what is still causing the requests for “image_size_600x800”.
   If it is calls to `the_post_thumbnail()` or related functions that is causing
   it, you can use the ‘post_thumbnail_size’ filter to alter which size is requested.
 *  Thread Starter [The Three](https://wordpress.org/support/users/3wwwgr/)
 * (@3wwwgr)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mapping-image-sizes/#post-12682733)
 * [@bcworkz](https://wordpress.org/support/users/bcworkz/)
 * i found a filter for woocommerce… can i use this for other sizes?
 *     ```
       add_filter( 'woocommerce_thumbnail', function( $size ) { 
           return 'thumbnail'; 
       } );
       ```
   
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [6 years, 1 month ago](https://wordpress.org/support/topic/mapping-image-sizes/#post-12684206)
 * I don’t know WooCommerce very well. I’m guessing that sets the pixel size for
   the registered image size ‘woocommerce_thumbnail’. If so I don’t think it contributes
   towards your goal. I am quite possibly wrong.

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

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

## Tags

 * [add_filter](https://wordpress.org/support/topic-tag/add_filter/)
 * [image_size](https://wordpress.org/support/topic-tag/image_size/)

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 3 replies
 * 2 participants
 * Last reply from: [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * Last activity: [6 years, 1 month ago](https://wordpress.org/support/topic/mapping-image-sizes/#post-12684206)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
