Kintzel Levente wrote:
[SNIPPED]
Related to this problem I have an another question. I talked about photo upload. I'm new 
in such tasks. I want to know an algorithm of implementing this. Exactly, when somebody 
ulpoad a photo this photo can have more Megas. But in the page it must be displayed only 
in a small area. So it is not correct to put the 10M photo because it takes some minutes 
to load the page. But when somebody click the photo he must view the "big" 
photo.
So, is there a tool or package that helps to display on the page a smaller 
version of the same photo, and on click to show the original photo. How did you 
resolve this situation?
I have some ideas to start, but before I start the work I want to choose the 
best version:
1. the user must upload 2 photos instead of 1. (a small and a big photo)
2. when somebody upload a photo, to save the big photo and generate and save 
the small photo on the server (I didn't find something to work for all formats)

This is what we do and we use the JAI toolkit from Sun for the conversion to a common format and scaling. i.e. the user uploads a large tiff, we store the tiff raw *and* store a preview image that is converted to a jpg and scaled.

You could also use tnhe imagemagik toolkit if on Linux.

3. to send dinamicaly to the page a smaller version of the big photo (so on the 
server I will have saved only the big photo) (I don't know how).

You could probably do this on the fly with JAI also, but why take the hit?

=====================================================================
Jeffrey D. Brekke                                   [EMAIL PROTECTED]
Wisconsin,  USA                                     [EMAIL PROTECTED]
                                                    [EMAIL PROTECTED]
http://www.bloglines.com/blog/jbrekke               [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to