Gmagick::readimageblob

(PECL gmagick >= Unknown)

Gmagick::readimageblobReads image from a binary string

Descrierea

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

Reads image from a binary string.

Parametri

imageContents

Content of image

filename

The image filename.

Valorile întoarse

The Gmagick object on success

Erori/Excepții

Emite o GmagickException în caz de eroare.

add a note add a note

User Contributed Notes 1 note

up
2
MPLong
14 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