Making thumbnails from images
- From: Flaming Corncob <you@xxxxxxxx>
- Date: Wed, 30 Aug 2006 00:09:51 GMT
One of the things I'm in the process of doing is putting together a
photo album for our family. In the process of surfing through php.net
looking for other things I ran across some functions (imagecreate and
imagecreatefromjpeg for example) that appear to allow you to work with
images and (hopefully) make thumb nail images on-the-fly. Is this indeed
possible? I've tried a few things and I'm getting nowhere.
Here's some small code I'm playing around with.
<?
$src="./048807.jpg";
header("Content-type: image/jpeg");
$image=imagecreatefromjpeg($src);
imagejpeg($image);
?>
I keep getting (when I attempt to load the page):
The image ³...insert your site here...² cannot be displayed, because it
contains errors.
I don't seriously think it's this easy if it can be done at all, but
everything else I've tried ends the same way.
.
- Follow-Ups:
- Re: Making thumbnails from images
- From: Pat
- Re: Making thumbnails from images
- Prev by Date: Bill Gates videos for sale for the tech-person who has everything.
- Next by Date: Re: Making thumbnails from images
- Previous by thread: Bill Gates videos for sale for the tech-person who has everything.
- Next by thread: Re: Making thumbnails from images
- Index(es):
Relevant Pages
|