Hi,

Resizing stored photos as a "thumbnail" version for use as icons and so forth 
is a common design pattern. The usual solution is to store a second version of 
each photo in the db as the thumbnail version. Thus the resizing is done once, 
when the main photo is stored or updated. Some file storage libraries even 
generate the thumbnail version for you automatically. Eg Rail's attachment_fu 
plugin.

Often the ImageMagic library is used. Or one of its cousins.

Resizing on the browser, on the fly, is probably not the best idea since:
a) the full photo would have to be downloaded--could be very large given 
today's cameras
b) would be slow. To actually do the resize, you could use the browser. Or 
there may be a javascript library.


Regards,

Larry



________________________________
From: lennie <[email protected]>
To: SIMILE Widgets <[email protected]>
Sent: Wednesday, February 18, 2009 6:56:31 PM
Subject: Resize


I need to post pictures that are stored in a database,do you know a
way by which I can resize an image when using it as an icon without
manually resizing each picture?

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to