Gmagick::readimageblob

(PECL gmagick >= Unknown)

Gmagick::readimageblobバイナリ文字列から画像を読み込む

説明

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

バイナリ文字列から画像を読み込みます。

パラメータ

imageContents

画像の内容。

filename

画像ファイル名。

戻り値

Gmagick オブジェクトを返します。

エラー / 例外

エラー時に GmagickException をスローします。

add a note

User Contributed Notes 1 note

up
6
MPLong
13 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