Get the URL, width and height of an image where the width and height are a specified minimum
If you have the size of the square container before hand as you do, 208x208px then why not just add a custom image size to your functions file and call that image size in your template. Add this to your themes functions.php: add_image_size( ‘custom-size’, 208, 208, true ); if you are running WordPress 3.9 you … Read more