W3cubDocs

/PHP

Gmagick::readimage

(PECL gmagick >= Unknown)

Gmagick::readimageReads image from filename

Description

public Gmagick::readimage(string $filename): Gmagick

Reads image from filename.

Parameters

filename

The image filename.

Return Values

The Gmagick object.

Errors/Exceptions

Throws an GmagickException on error.

© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/gmagick.readimage.php