Posted by Flaming Corncob on 08/30/06 00:09
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.
Navigation:
[Reply to this message]
|