Welcome Guest, Not a member yet? Register   Sign In
imagejpeg function / annoying warning
#2

[eluser]crikey[/eluser]
Hi,

According to the php manual page for that function http://php.net/manual/en/function.imagejpeg.php the parameters need to be (in order) the image resource (resource), the filename (string), and the quality (int).

So instead of passing the directory to the function, pass a filename:

Code:
$toFile = 'gallery/large/';
$image = 'image.jpg';
$filename = $toFile.$image;
imagejpeg($handle, $filename, 100);

HTH,

Grant


Messages In This Thread
imagejpeg function / annoying warning - by El Forum - 09-09-2010, 08:19 PM
imagejpeg function / annoying warning - by El Forum - 09-10-2010, 12:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB