I'm using the gd lib for image manipulation. Where would the @copy go in the following code?
if ($type == 'jpeg')
{$orig = ImageCreateFromJpeg($image);}
elseif ($type == 'png')
{$orig = ImageCreateFromJpeg($image);}
$new = ImageCreate($tn_width,$tn_height);
ImageCopyResized($new $orig, 0, 0, 0, 0,
$tn_width,$tn_height,$width,$height);
if ($type == 'jpeg')
{$graphic = ImageJpeg($new, null, -1);}
elseif ($type == 'png')
{$graphic = ImagePng($new, null, -1);}
thx!
R.