WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
How can I make add_image_size() crop from the top?

When generating a thumbnail or featured image the wordpress resize the smallest side and then crop the largest side. I need to make it crop both sides on post thumbnail or on featured image in functions (preferable). Any way to reach this using an wordpress plugin or hack?

share|improve this question

migrated from stackoverflow.com May 6 '11 at 11:20

This question came from our site for professional and enthusiast programmers.

marked as duplicate by Rarst Jul 5 '11 at 12:27

This question was marked as an exact duplicate of an existing question.


You can use below functions for cropping Or resizing your images.

add_image_size('news-thumbnail', 500, 200, true);



you can also refer this Link.


share|improve this answer