0

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?

0

1 Answer 1

0

HELLO,

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

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

AND

the_post_thumbnail('news-thumbnail');

you can also refer this Link.

Thanks.