Page 2 of 2

Posted: Sat Oct 22, 2005 8:58 pm
by Dm7
oh duh.. :oops: I get it now :lol:

Code: Select all

<?php
include('functions_main.inc.php');
include('configuration.inc.php');

$im = imagecreatefromjpeg("webdesignconcept_31.jpg");
makeThumb($im);
header("Content-type:image/jpeg"); 
imagejpeg($thumb);
imagedestroy($thumb);

?>
But... got that error:

Code: Select all

The image “http://dm7.net/gallery/testing.php” cannot be displayed, because it contains errors.

Posted: Sat Oct 22, 2005 9:00 pm
by feyd
again, you haven't stored the return from the function:

Code: Select all

$thumb = makeThumb($im);

Posted: Sat Oct 22, 2005 9:05 pm
by Dm7
oh duh :D I'm so bad with functions... it works now. Thanks.