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

Imagick::writeImage

PHP function Edit on GitHub ✎

(PECL imagick 2 >= 2.3.0, PECL imagick 3)

Writes an image to the specified filename

Description

Imagick::writeImage(string $filename = NULL): bool

Writes an image to the specified filename. If the filename parameter is NULL, the image is written to the filename set by Imagick::readImage() or Imagick::setImageFilename().

Parameters

filename

Filename where to write the image. The extension of the filename defines the type of the file. Format can be forced regardless of file extension using format: prefix, for example "jpg:test.png".

Return Values

Success

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