Newsletter sign-up
View all newsletters

Enterprise Java Newsletter
Stay up to date on the latest tutorials and Java community news posted on JavaWorld

JavaWorld Daily Brew

JSP Thumbnail View


Hi All,

I'm working on a photo gallery application in JSP and have encountered a problem trying to create thumbnails from large photos.

Basically I'm trying to create thumbnail images on the fly(image file should not save to the hard disk) to serve up to the users via the JSP script.

Is it possible to do in jsp(with html)?
Does anybody has idea or source? Please let me know.

Thanks in Advance,

V. Prasath.

Your rating: None Average: 3.6 (5 votes)

What is the source of the

What is the source of the image? Is it from DB?
If its in DB what is the format?

The image is saved in local

The image is saved in local disk not in DB...

quite useful

i have the same problem. been wanting to try that conversion but none of em' worked. thanks though.

Save the error rather than saving the image

you should save the big image and its comparison with smaller image and its error code like google does. when you enlage the image just add error code.
see image saving algorithm

Save the error rather than saving the image ..continue

See if you enlarge a small image you will see that image is destructed but there are some part that will be clear. so you will just need to add the error code of the larger image and this smaller image. Adding the error code will fix the image. this is how google saves the image. Google saves the smallest image and when you ask google to enlarge the image it just adds the error code of the image and image becomes large.
This is complete algorithm of saving image error and comparing. I read this when I was have a course of Multi-Media Software Engineering (MSD).

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Post new comment

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <p> <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <br /> <br> <strike>
  • Lines and paragraphs break automatically.
  • Use <!--pagebreak--> to create page breaks.
  • You may post code using <code>...</code> (generic) or <?php ... ?> (highlighted PHP) tags.

More information about formatting options

CAPTCHA
Just checking to see if you're an actual person rather than a spammer. Sorry for the inconvenience.