Title: Image sizes help
Last modified: January 25, 2021

---

# Image sizes help

 *  Resolved [candell](https://wordpress.org/support/users/candell/)
 * (@candell)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/image-sizes-help/)
 * I’m having a serious mind melt.
 * I need images to be cropped on upload to be 300×300, but show the whole image.
 * For example, a tall and thin image will be 300px tall and show the whole image.
 * A short but wide image will be 300px wide and show the whole image.
 * Currently all images are cropped to the middle portion of the image.
 * Is it also possible to have whitespace around the image to make a tall and thin
   image 300×300 instead of 100×300 for example?
 * The issue is highlighted most in Woocommmerce using the image setting from Customizer.
   I have thumbanil width set to 300 and 1:1.
 * I’m not too fussed about width, I want to set the height mostly.
 * Thanks

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/image-sizes-help/#post-13955733)
 * You’re describing scaling. Cropping means some portion of the image will be lost.
   Sorry for being pedantic, but it’s an important distinction in addressing your
   need. You can register a new 300×300 image size that is not cropped, but scaled.
   
   [https://developer.wordpress.org/reference/functions/add_image_size/](https://developer.wordpress.org/reference/functions/add_image_size/)
 * The new size will be used in new uploads, not existing images. There are plugins
   that will update existing images to a new image size scheme. As far as adding
   background fill to unused space to reach 300×300, it might be possible if your
   server has the Imagick image editor module. Most only have the GD editor where
   I doubt it’s possible. In any case, it’s not part of WP functionality, it’d need
   to be custom coded. I recommend using HTML and CSS to display a square, filled
   background for rectangular images.
 *  Thread Starter [candell](https://wordpress.org/support/users/candell/)
 * (@candell)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/image-sizes-help/#post-13964162)
 * Thanks, scaling is exactly what I needed to hear and have it sorted now.

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

The topic ‘Image sizes help’ is closed to new replies.

 * In: [Developing with WordPress](https://wordpress.org/support/forum/wp-advanced/)
 * 2 replies
 * 2 participants
 * Last reply from: [candell](https://wordpress.org/support/users/candell/)
 * Last activity: [5 years, 4 months ago](https://wordpress.org/support/topic/image-sizes-help/#post-13964162)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
