Rounded corner thumbnail [status: still not solved]

Need help with Photoshop, the GIMP, Illustrator, or others? Want to show off your work? Looking for advice on your newest Flash stuff?

Moderator: General Moderators

Dm7
Forum Commoner
Posts: 67
Joined: Sat Oct 08, 2005 9:16 pm
Location: USA

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

again, you haven't stored the return from the function:

Code: Select all

$thumb = makeThumb($im);
Dm7
Forum Commoner
Posts: 67
Joined: Sat Oct 08, 2005 9:16 pm
Location: USA

Post by Dm7 »

oh duh :D I'm so bad with functions... it works now. Thanks.
Post Reply