Resize External Image

My theme is using a function like below to get post feature image with a specific size. From font-end, ‘photography-gallery-grid’ means to crop image with height 529px and keep the width proportionally though I can not find where it is.

  $small_image_url = wp_get_attachment_image_src($image_id, 'photography-gallery-grid', true);

What I need is I have external image url and trying to use instead of the one in Media Library, I want to crop it the same way that function does. I’ve been trying but still can not find a solution yet. Please help me
for example:

 I want  
 to become

Read more here: Resize External Image

Leave a Reply

Your email address will not be published. Required fields are marked *