imagecreatefromgd
(PHP 4 >= 4.0.7, PHP 5)
imagecreatefromgd — Create a new image from GD file or URL
Descripción
resource imagecreatefromgd
( string $filename
)
Create a new image from GD file or URL.
Tip
Puede usar una URL como nombre de archivo con esta función si los fopen wrappers han sido activados. Consulte fopen() para más detalles sobre cómo especificar el nombre de fichero y Lista de Protocolos/Envolturas Soportadas una lista de protocolos URL soportados
Lista de parámetros
- filename
-
Path to the GD file.
Valores retornados
Returns an image resource identifier on success, FALSE on errors.
Ejemplos
Example #1 imagecreatefromgd() example
<?php
// Load the gd image
$im = @imagecreatefromgd('./test.gd');
// Test if the image was loaded
if(!is_resource($im))
{
die('Unable to load gd image!');
}
// Do image operations here
// Save the image
imagegd($im, './test_updated.gd');
imagedestroy($im);
?>
Notes
Warning
Versiones de PHP para Windows anteriores a 4.3.0, no soportan el acceso remoto a archivos para esta función, no funcionará ni activando siquiera allow_url_fopen.
imagecreatefromgd
There are no user contributed notes for this page.
