Forum Moderators: open
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
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