ResponsiveImagesCG/wp-tevko-responsive-images — pull request #8 by drrobotnik (2014-12-30 00:35:39+00:00)
Title: Pr

You can pass the $size along with image_send_to_editor. With this information we can choose to not include unnecessary crops.

Also, by using wp_get_attachment_metadata we can check the sizes that actually exist for the image. with this, we can confidently loop through the crops forgoing a lot of the conditional checks around like #59.