PHP 8.2.0 Alpha 2 available for testing

Gmagick::readimageblob

(PECL gmagick >= Unknown)

Gmagick::readimageblobReads image from a binary string

Beschreibung

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

Reads image from a binary string.

Parameter-Liste

imageContents

Content of image.

filename

The image filename.

R├╝ckgabewerte

The Gmagick object.

Fehler/Exceptions

Wirft bei einem Fehler eine GmagickException.

add a note add a note

User Contributed Notes 1 note

up
5
MPLong
11 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