Hi,
> imagejpeg($dst_img);
This actually outputs the image, so your result is not unexpected.
Try this instead:
imagejpeg($dst_img, "/path/and/filename/to/newfile.jpg");
Regards
Joakim Andersson
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.
Hi,
Output the correct headers before you output the image
ie
header("Content-type: image/jpeg");
imagejpeg($dst_img, '', 50);
Remove all print statements from this code. You cannot output anything but
the headers and the image itself.
Use imagecopyresampled if you can. It gives much better q
Don't know if this helps, but the following works on my system.
Hugh
$width)
{
$nheight=$max;
$nwidth=$width/($height/$max);
}
else
{
$nwidth=$max;
$nheight=$height/($width/$max);
}
//header("content-type: image/jpeg");
$image=imagecreatefromjpeg($picture);
$image1=imagecreate($nwidth,$
On Monday 24 June 2002 18:57, Phil Ewington wrote:
> Hi,
>
> I am trying to copy and resize an image using imagecopyresized() and
> cannot seem to crack it. Below is the code I am using, can anyone tell
> me why I keep getting and invalid image resource warning and is this
> the src or dest parame
4 matches
Mail list logo