wp_get_attachment_image_src match smallest edge

I’m trying to get the minimum image source that fills the given size.
wp_get_attachment_image_src(get_post_thumbnail_id(), array(180, 180)) gets the image which fits the size and not which fills it.

Is there any built-in possibility to get an image with minimum size?

Read More

I have an container DIV and want to put the posts thumbnail as background-image and want to the image to be => sized.

Related posts