downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

Gmagick::readimagefile> <Gmagick::readimage
[edit] Last updated: Fri, 24 May 2013

view this page in

Gmagick::readimageblob

(PECL gmagick >= Unknown)

Gmagick::readimageblobReads image from a binary string

说明

public void Gmagick::readimageblob ( string $imageContents [, string $filename ] )

Reads image from a binary string.

参数

imageContents

Content of image

filename

The image filename.

返回值

The Gmagick object on success

错误/异常

错误时抛出 GmagickException



add a note add a note User Contributed Notes Gmagick::readimageblob - [1 notes]
up
0
MPLong
2 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.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites