©
이 문서에서는 PHP 중국어 웹사이트 매뉴얼 풀어 주다
(PECL gmagick >= Unknown)
Gmagick::readimageblob — Reads image from a binary string
$imageContents
[, string $filename
] )Reads image from a binary string.
imageContents
Content of image
filename
The image filename.
The Gmagick object on success
错误时抛出 GmagickException。
[#1] MPLong [2010-06-28 11:29:49]
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.