HI,
Please use code like that .
global $post;
$postID = $post->ID;
$media_image = get_post_thumbnail_id($postID);
if ($media_image) {
$image_id = $media_image;
$media_image_url = wp_get_attachment_url( $media_image, 'full' );
$detail_image = aq_resize( $media_image_url, 150,150, true, false);// you can change 150 to any height and width
if ($detail_image) {
$image = '<img itemprop="image" src="'.$detail_image[0].'" width="'.$detail_image[1].'" height="'.$detail_image[2].'" alt="'.$image_alt.'" />';
}
echo $image;
}
Thanks