Gmagick::readimageblob

(PECL gmagick >= Unknown)

Gmagick::readimageblobLee una imagen desde una cadena binaria

Descripción

public Gmagick::readimageblob(string $imageContents, string $filename = ?): Gmagick

Lee una imagen desde una cadena binaria.

Parámetros

imageContents

Contenido de la imagen.

filename

El nombre del fichero de imagen.

Valores devueltos

Un objeto Gmagick.

Errores/Excepciones

Arroja un GmagickException en caso de error.

add a note

User Contributed Notes 1 note

up
4
MPLong
15 years ago
If you want to be able to do the opposite (output your gmagick object to a blob), then use getImageBlob() like this:

$outputstring = $im->getImageBlob();

This is apparently undocumented here, but since the entire library is ported/modeled on the imagemagick library, it makes sense that it uses the same name as imagemagick.
To Top