PHP 8.1.0 RC 4 available for testing

Imagick::setFormat

(PECL imagick 2, PECL imagick 3)

Imagick::setFormatSets the format of the Imagick object

Description

public Imagick::setFormat(string $format): bool

Sets the format of the Imagick object.

Parameters

format

Return Values

Returns true on success.

add a note add a note

User Contributed Notes 3 notes

up
1
winmonaye at gmail dot com
6 years ago
You can only set format listed in $imgic->queryFormats() .
It can be different from http://www.imagemagick.org/script/formats.php .
up
1
scott at thebrain dot ca
13 years ago
don't confuse this function with setImageFormat()
To Top