Welcome to WebmasterWorld Guest from 54.145.208.64

Forum Moderators: ergophobe

Message Too Old, No Replies

Image Tools for Web

Web based image resize.

   
10:58 pm on Jul 7, 2007 (gmt 0)

5+ Year Member



Hi Everyone
I am making a website which allows the users to upload there own jpg images.
The whole website it jsp based and is server using tomcat application server.

I am looking for a cheap or free tool for the system so that when user upload an image it is optimized and saved in different sizes required my the front end to display.

Does anyone know about any such thing available.

Thanks
Vik

11:26 pm on Jul 7, 2007 (gmt 0)

5+ Year Member



I just found this
[veqa.com...]
But it there any other better one?
Thanks
Vik
12:40 am on Jul 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



vsgill,

You can use CSS to resize an image automatically and possibly save yourself a step.

If you uploaded images are always in a specific area, say a <div> and the <div> has an id, let's say <div id="image_holder">, you can do a CSS like this:

#image_holder img {
width: 150px; /* set this to the maximum width you wan the image to be*/
height: auto; /* This will cause the image to resize proportionally */
}

If it's the height you're concerned about, reverse the CSS to width: auto; height: whateverpx.

Hope this helps,
Marshall