Right, so in my original post, the lines below checked the system file path to get the type of image file:
$system=explode(".",$name);
if (preg_match("/jpg|jpeg/",$system[1])){$src_img=imagecreatefromjpeg($name);}
...but because the full path had a '.com' in it (just the way the provider handles it, not my choice), it broke the code...I rewrote this to get around the issue by using:
$info = getImageSize($fileFullPath);
then using the third element of the array returned, which gives you the image type, like so:
switch ($info[2]) {
case IMAGETYPE_GIF:
$infunc = 'ImageCreateFromGif';
$outfunc = 'ImageGif';
break;
case IMAGETYPE_JPEG:
$infunc = 'ImageCreateFromJpeg';
$outfunc = 'ImageJpeg';
break;
case IMAGETYPE_PNG:
$infunc = 'ImageCreateFromPng';
$outfunc = 'ImagePng';
break;
default;
throw new Exception('Invalid image type');
}
and got it to work, anyone interested can let me know...