Alex: the function ImageCreateFromJPG() does not exist... the function you are trying to use is ImageCreateFromJPEG().
This information is located in the online manual in the Image manipulation section of the function reference. Later "Alex Busquets" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > I trying to manipulate images, copy, resize I know for do it, I need GD > libraries, I have this libraries into my server, but I have this error > always. > > Fatal error: Call to undefined function: imagecreatefromjpg() in > C:\apache\htdocs\lignea\imatge.php on line 15 > > How I can define de function > > The code script is: > > <?php > > define("GIF", "1"); > define("JPG", "2"); > define("PNG", "3"); > define("SWF", "4"); > > $size = GetImageSize($fitxer); > > $ext=$size[2]; > > if($ext == GIF) > $im = ImageCreateFromGIF($fitxer); > else if($ext == JPG) > $im = ImageCreateFromJPG($fitxer); > else if($ext[2] == PNG) > $im = ImageCreateFromPNG($fitxer); > else > print("Imatge no suportada!"); > > if(!$im) > print("Error al obrir la imatge"); > > unlink($fitxer); > if($ext[2] == GIF) > ImageGif($im); > else if($ext[2] == JPG) { > Imagejpeg($im,'',20); > ImageDestroy($im); > > } > > ?> > > What happens? Thanks > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]