imagejpeg() unable to write to file error
Posted: Tue Aug 05, 2003 11:03 am
Hello,
i have the following code:
[syntax=php]$image = imagecreatefromjpeg($url.'/'.$file);
$filename = explode('.',$file);
$imagesx = imagesx($image)/2;
$imagesy = imagesy($image)/2;
$thumbnail = imagecreate(100,100);
imagecopyresized($thumbnail,$image,0,0,$imagesx/2,$imagesy/2,100,100,100,100);
imagejpeg($thumbnail,$filename[0].'_alt.'.$filename[1],50);
imagedestroy($thumbnail);[/syntax]
on script debuggin i get a [quote]imagejpeg: unable to open 'band_image0_alt.jpg' for writing[/quote]
im am unsure as to what are the paramters to be for the imagejpeg() the documentation isnt specific what should be the paramaters?
Kendall
i have the following code:
[syntax=php]$image = imagecreatefromjpeg($url.'/'.$file);
$filename = explode('.',$file);
$imagesx = imagesx($image)/2;
$imagesy = imagesy($image)/2;
$thumbnail = imagecreate(100,100);
imagecopyresized($thumbnail,$image,0,0,$imagesx/2,$imagesy/2,100,100,100,100);
imagejpeg($thumbnail,$filename[0].'_alt.'.$filename[1],50);
imagedestroy($thumbnail);[/syntax]
on script debuggin i get a [quote]imagejpeg: unable to open 'band_image0_alt.jpg' for writing[/quote]
im am unsure as to what are the paramters to be for the imagejpeg() the documentation isnt specific what should be the paramaters?
Kendall