Title: WordPress add_image_size
Last modified: September 8, 2016

---

# WordPress add_image_size

 *  [robertrhu](https://wordpress.org/support/users/robertrhu/)
 * (@robertrhu)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/wordpress-add_image_size/)
 * I am struggling getting WordPress to properly crop a photo based on a custom 
   add_image_size I’ve setup. I want the crop to be left, center but it keeps cropping
   in what seems like the wrong place to me. What am I missing? Can it be cropped
   the way I want it to be?
 * **Here’s the PHP:**
 * `add_image_size ('resorts-accordion', 225, 340, array( 'left', 'center') );`
 * Here’s the original Image:
    [http://i.stack.imgur.com/NIohe.jpg](http://i.stack.imgur.com/NIohe.jpg)
 * Here’s the ‘wrong’ way the image is being cropped:
    [http://i.stack.imgur.com/dqEva.jpg](http://i.stack.imgur.com/dqEva.jpg)
 * Here’s how I want it actually cropped
    [http://i.stack.imgur.com/cutrK.jpg](http://i.stack.imgur.com/cutrK.jpg)

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

 *  [Juhi Saxena](https://wordpress.org/support/users/juhise/)
 * (@juhise)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/wordpress-add_image_size/#post-8157935)
 * Hey [@robertrhu](https://wordpress.org/support/users/robertrhu/),
 * It must work, it seems good to me.
    Would you mind to regenerate thumbnails [https://wordpress.org/plugins/regenerate-thumbnails/](https://wordpress.org/plugins/regenerate-thumbnails/)
   I have also tried with your given image, it gives expected result. Screenshot:
   [http://i.share.pho.to/1bed6c69_o.png](http://i.share.pho.to/1bed6c69_o.png)
 * Best Regards,
    Juhi
 *  Thread Starter [robertrhu](https://wordpress.org/support/users/robertrhu/)
 * (@robertrhu)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/wordpress-add_image_size/#post-8157961)
 * Right?! It must work! I’m going crazy trying to get it to work. Glad to see you
   were able to get the result. Thank you for doing that.
 * I’ve regenerated thumbnails probably 20 times. I’ve deleted the files from the
   media library and my localost uploads directory and reuploaded the image. Still
   won’t work.
 * Could it be a cache issue?

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

The topic ‘WordPress add_image_size’ is closed to new replies.

## Tags

 * [add_image_size](https://wordpress.org/support/topic-tag/add_image_size/)
 * [crop](https://wordpress.org/support/topic-tag/crop/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [Juhi Saxena](https://wordpress.org/support/users/juhise/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/wordpress-add_image_size/#post-8157935)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
