Gmagick
PHP Manual

Gmagick::setfilename

(PECL gmagick >= Unknown)

Gmagick::setfilenameSets the filename before you read or write the image

说明

public Gmagick Gmagick::setfilename ( string $filename )

Sets the filename before you read or write an image file.

参数

filename

The image filename.

返回值

The Gmagick object on success

错误/异常

Throws an GmagickException on error.


Gmagick
PHP Manual