Gmagick::readimageblob
(PECL gmagick >= Unknown)
Gmagick::readimageblob — Reads image from a binary string
说明
Reads image from a binary string.
参数
imageContents
-
Content of image.
filename
-
The image filename.
返回值
The Gmagick object.
错误/异常
错误时抛出 GmagickException。
+添加备注
用户贡献的备注 1 note
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.
备份地址:http://www.lvesu.com/blog/php/gmagick.readimageblob.php