(PECL imagick 2, PECL imagick 3)
Imagick::setFilename — Sets the filename before you read or write the image
public Imagick::setFilename ( string $filename ) : bool
Sets the filename before you read or write an image file.
filename
 Returns true on success. 
    © 1997–2020 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
    https://www.php.net/manual/en/imagick.setfilename.php