Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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 has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

1 Answer 1


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