PDA

View Full Version : One image with different size


weronpc
01-14-2005, 03:28 PM
Hello PHP Experts

I only have one image, but I need this image to be in 3 different sizes. Currently, I use html to change it's size
<image src="sample.jpg" width="400" hight="400">
<image src="sample.jpg" width="200" hight="200">
<image src="sample.jpg" width="50" hight="50">

The size 50 should load faster than size 400, but with this approach, it loads the same image. Anyone know any better way to acomplish this?

Thank you,

Mike

marek_mar
01-14-2005, 05:05 PM
You can use gd (http://www.php.net/image) or imagemagic.