Title: WordPress image resize hook
Last modified: August 20, 2016

---

# WordPress image resize hook

 *  [xeskor](https://wordpress.org/support/users/xeskor/)
 * (@xeskor)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wordpress-image-resize-hook/)
 * Any relevant help will be appreciated.
 * I want to make rounded cornres on images off certain image size. For example 
   I have add_image_size(‘xx’, ‘320’, ‘320’, true);
 * Can I hook to this function and add rounded corners after resizing?

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

 *  [redrocksrover2](https://wordpress.org/support/users/redrocksrover2/)
 * (@redrocksrover2)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wordpress-image-resize-hook/#post-3396277)
 * Add the rounded corners with CSS. Instead of creating an image link like:
    `<
   img src="myimage" with="320" height="320" alt="" />`
 * Insert your image as the background of a <div> or other HTML element, then set
   the CSS border-radius of that element as you like. The border radius of the element
   will clip the background image and make it look like your image has rounded corners.
 * See:
    [http://answers.oreilly.com/topic/1002-how-to-set-a-rounded-border-around-an-image-using-css/](http://answers.oreilly.com/topic/1002-how-to-set-a-rounded-border-around-an-image-using-css/)
 * Also:
    [http://caniuse.com/#feat=border-radius](http://caniuse.com/#feat=border-radius)
 *  Thread Starter [xeskor](https://wordpress.org/support/users/xeskor/)
 * (@xeskor)
 * [13 years, 4 months ago](https://wordpress.org/support/topic/wordpress-image-resize-hook/#post-3396300)
 * I have to change image with php gd. It is necessary

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

The topic ‘WordPress image resize hook’ is closed to new replies.

## Tags

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

 * In: [Hacks](https://wordpress.org/support/forum/plugins-and-hacks/hacks/)
 * 2 replies
 * 2 participants
 * Last reply from: [xeskor](https://wordpress.org/support/users/xeskor/)
 * Last activity: [13 years, 4 months ago](https://wordpress.org/support/topic/wordpress-image-resize-hook/#post-3396300)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
