php / 8.1.5 / gmagick.setimagetype.html /

Gmagick::setimagetype

(PECL gmagick >= Unknown)

Gmagick::setimagetypeSets the image type

Description

public Gmagick::setimagetype(int $imgType): Gmagick

Sets the image type.

Parameters

imgType

One of the Image type constant (Gmagick::IMGTYPE_*).

Return Values

The Gmagick object.

Errors/Exceptions

Throws an GmagickException on error.

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