php - How do i get resized image of external site? -


i trying display resized images thumbnail view in website.

i creating page of gallery list there list of thumbnails of images external site. i.e if images located in xyz.com/images/abc.jpg [600 x 400] show resized form of 150 x 100 in website.

how effective , in case of performnance , bandwdith too?

imagecopyresampled resize image ya, there plenty of examples in documentation/comments.

the fact source image on server means use url when creating image resource:

$img = imagecreatefromjpg("http://xyz.com/images/abc.jpg"); 

store thumbnail on server , serve file on future requests rather generating again on each request, otherwise waste lots of bandwidth , cpu time.


Comments

Popular posts from this blog

WPF: binding viewmodel property of type DateTime to Calendar inside ItemsControl -

java - Getting corefrences with Standard corenlp package -

Java - Returning an array from a method to main -