php8.5
Home/ Manual/ imagick / imagick/ Imagick::setType

Imagick::setType

PHP function Edit on GitHub ✎

(PECL imagick 2, PECL imagick 3)

Sets the image type attribute

Description

Imagick::setType(int $image_type): bool

Sets the image type applied to images written subsequently. To convert the current image instead, use Imagick::setImageType.

Parameters

image_type

One of the imagick::IMGTYPE_* constants.

Return Values

Success

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