Image resizer

Resize images the easy way

<?php
//image resizer by myscripting
//get the size of the original
$size = GetImageSize("testimage.gif");
//store the resized dimensions in a variable
$sizeh50 = $size[1]/2;
$sizew50 = $size[0]/2;
?>
Original Image :
<br>
<img src ="testimage.gif">
<br>
Resized image :
<br>
<img src ="testimage.gif" height="<?php echo $sizeh50; ?>" width ="<?php echo $sizew50;?>">