javascript - creating a thumbnail-preview image on the fly from a big image -


i have list of images in quite big resolution, on 2000x1000 pixels. want display them on page thumbnails, don't want actually/physically create thumbnails , store them on server. there unexpensive way generate such images-thumbnails on fly? maybe using html5.

depending on server, there different ways resize images before sending them browser. php answer resize image in php.

if want in html5 (on browser) still sending full size image not benefit in bandwidth , download times. can change image size in document specifying in image tag attributes width , height or style width , height. resize image, again full size image in memory in browser consume lot of memory if have enough images displayed.

i don't believe html5 has way of resizing image save memory, though use javascript image editor library resize image after downloading , removing original document save on memory. however, seems least effective method.

in opinion, if have lot of images, best way convert thumbnails , store them (sorry) make server handle automatically.

if don't have lot of images, send full size , take performance hit in browser.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -