Writes an image to the specified filename

# Gmagick::writeimage

(PECL gmagick >= Unknown)

Gmagick::writeimage — Writes an image to the specified filename

### Descrierea

public Gmagick::writeimage ( string `$filename` [, bool `$all_frames` = `FALSE` ] ) : Gmagick

Writes an image to the specified filename. If the filename parameter is NULL, the image is written to the filename set by Gmagick::ReadImage() or Gmagick::SetImageFilename().

### Parametri

`filename`

  The image filename.

### Valorile întoarse

The Gmagick object

### Erori/Excepții

Emite o GmagickException în caz de eroare.