If I had any hair, I'd be tearing it out now. Basically what I'm trying to do is upload an image through a form, shrink it and then stick the original image and the original in BLOB column in a MySQL database.
I can upload display and insert and retrieve the original image, but I can't seem to figure out how to modofy the image.
I tried the following:
imagecopyresampled ($thImage, $uploadedfile, 0, 0, 0, 0, $destwidth, $destheight, $ImageWidth, $ImageHeight);
That didn't work, so I tried doing this:
$imagenew=ImageCreateFromJPEG($formImageData);
imagecopyresampled ($thimage, $imagenew, 0, 0, 0, 0, $destwidth, $destheight, $ImageWidth, $ImageHeight);
I know I am completely missing the problem here and would appreciate any assistance anyone could offer.
Thanks in advance,
Alex