php - Should i re-size images on the fly or store them -


im writing application image search using flickr webservice. im storing url of each image returned in databse.

now need perform image re-sizing, should store each resized image on server or there way can re-size on fly or (ie. use gd library spit out resized image without storing on server or db).

thanks

since tagged php, assume website? can "resize" on fly changing width , height of image tag. however, disadvantage of that:

  1. the full image still needs transferred (even if resized image smaller), and
  2. the browser must perform resizing, leading higher rendering time.

precomputing resized image, , returning image lead lower latency (by reducing number of bytes transmitting, , removing need resize on client). however, performing client-side resizing (by changing "width" , "height") parameter viable if necessary.


Comments

Popular posts from this blog

c++ - Is it possible to compile a VST on linux? -

java - Output of Eclipse is rubbish -

jquery - Confused with JSON data and normal data in Django ajax request -