php8.5
Home/ Manual/ gmagick / gmagick/ Gmagick::setimagetype

Gmagick::setimagetype

PHP function Edit on GitHub ✎

(PECL gmagick >= Unknown)

Sets the image type

Description

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

Throw

Source: reference/gmagick/gmagick/setimagetype.xml · from the official PHP manual (php/doc-en)