View Full Version : set image to certain width and height

03-30-2010, 08:54 PM
This should be possible and it's that I want to be able to set up a width and height container and have images fit within those dimensions even if the actual image is bigger than the dimensions.

I have my folder with images that are different sizes but want them all to fit into the image container. it's for a blog.

any way to do this.


03-30-2010, 09:42 PM
The dirty way would be to resize the html <img height and width attributes (no flames please)

you would have to do this dynamically of course using PHP

or you could do this using the PHP gd library and physically resize those images on the fly. << more advanced

Or you could try a CMS like Drupal with built in image handling functionality