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
I want http://imagehost.com/doraemon.jpg to become http://imagehost.com/doraemon-700x529.jpg
Read more here: Resize External Image