I am trying to do a photo gallery, so I needed something to make thumbnails. Because of the amount of thumbnails, I need something more fancy that just showing the images with smaller W&H (that doesn't shrink file size).
I can use the following to resize .gifs, but it doesn't work for .JPG files. Is there any way to accomplish this with JPGs and not just GIFs?
<?
$src_img = ImageCreatefromGif("test_begin.gif");
$end_img = ImageCreate(75, 56);
ImageCopyResized($end_img, $src_img, 0, 0, 0, 0, 75, 56, 640, 480);
ImageGif($end_img, "test_end.gif");
?>
<img src="test_begin.gif"><br><BR>
<img src="test_end.gif">