I have a directory of 640X480 images and I want php to make thumbnails of those images on the fly. With the phpinfo() command, I see both:
'--with-gd=shared,/usr'
'--with-jpeg-dir=shared,/usr'
I have GD libgd 2.0.1-1 and libjpeg 6b-4 installed.
when I try:
$dstx = 640; $dsty = 480; $srcx = 1; $srcy = 1;
$dstw = 185; $dsth = 139; $srcw = 640; $srch = 480; imagecopyresized($resizedname, $file, $dstx, $dsty, $srcx, $srcy, $dstw, $dsth, $srcw, $srch);
I get:
Fatal error: Call to undefined function: imagecopyresampled() in /dir/.../file.php/var/www/jpdietrich/noses/noseshots.php
I am not sure what to do now. I would be really happy if somebody could tell me what I am doing wrong and how to fix it.
Thanks,
Jonathan Dietrich
jpdietrich@southern.edu