OK, I'm having the same problem everyone else in the forum is having. I'm getting a 'call to undefined function' error when trying to use the imagecreatefromjpeg function.
As far as my phpinfo(); command says, my GD lib is enabled and fine, yet I have nothing in my php.ini file saying that it should be... Uncommenting the 'extension=php_gd.dll' line shouldn't do anything for me, I'm not on a windows box and don't have the dll on my machine.
I'm running mac os x, php 4.3.0, apache 1.3.27, gd version 1.6.2 (or higher?).
Any os x or free bsd folks out there who has got this to work?
Here's my code, thanks - Cy.
$image_path = "../photos/gallery/$area";
$image_path = "../photos/gallery/$area/thumbnails";
$image_name = $userfile_name;
$src_img = imagecreatefromjpeg("$image_path/$image_name");
$new_w = 100;
$new_h = 100;
$dst_img = imagecreate($new_w,$new_h);
imagecopyresized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,imagesx($src_img),imagesy($src_img));
imagejpeg($dst_img, "$thumb_path/$image_name");
//imagedestroy($src_img);