Page 1 of 1

how to resize image?

Posted: Tue Jun 01, 2004 8:55 am
by kevin7
actually, i want to make a source code that resize my image...

image will resize into two diff size...
one is 100x80 thumbnail...
and another is 200x160...

can u show me the code..?

Posted: Tue Jun 01, 2004 9:00 am
by evanz
echo '<img src="imgname.gif" width="100" height="80">';

echo '<img src="imgname.gif" width="200" height="160">';

Posted: Tue Jun 01, 2004 9:05 am
by kevin7
no... i mean in php...

Posted: Tue Jun 01, 2004 9:09 am
by JayBird
Search the forums!

Especially check out the code snippets forum. Been asked, and answered loadsa times before.

Mark

Posted: Tue Jun 01, 2004 9:49 am
by pickle
You're looking for [php_man]imagecopyresampled[/php_man] ideally, or [php_man]imagecopyresized[/php_man] if the other one isn't supported in your version of PHP.