略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: Gmagick::readimageblob

2024-04-27

Gmagick::readimageblob

(PECL gmagick >= Unknown)

Gmagick::readimageblobReads image from a binary string

说明

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

Reads image from a binary string.

参数

imageContents

Content of image.

filename

The image filename.

返回值

The Gmagick object.

错误/异常

错误时抛出 GmagickException

add a noteadd 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.

官方地址:https://www.php.net/manual/en/gmagick.readimageblob.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3