I’m using the following to generate a thumbnail image in WordPress for an RSS feed:
<media:content medium="image" width="128" url="<?php echo wp_get_attachment_url(get_post_thumbnail_id($post->ID)); ?>" />
How can I replace that image with a resized & cropped thumbnail square at 128x128px?
Use wp_get_attachment_image_src instead.
Obviously you would want to add some error checking, but this would be sample usage given your scenario: