GMImage.WriteImages
-------------------

Writes several images to disk.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [GraphicsMagick](component_GraphicsMagick.md) | [3.4](newinversion34.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "GMImage.WriteImages"; ImageList; Path; Adjoin ) 

**MBS**( **"GMImage.WriteImages";** /\* Writes several images to disk. \*/  
**$ImageList**; /\* The list of image references (numbers returned from the [GMImage.New](GMImageNew.md) functions) separated by either space or new line character.e.g. "1 2 3" \*/   
**$Path**; /\* A platform specific filepath where to write the image.e.g. "C:\\Test.tif" \*/   
**$Adjoin**) /\* Whether to write one file per image or one image file with all images.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageList | The list of image references (numbers returned from the [GMImage.New](GMImageNew.md) functions) separated by either space or new line character. | "1 2 3" |
| Path | A platform specific filepath where to write the image. | "C:\\Test.tif" |
| Adjoin | Whether to write one file per image or one image file with all images. | 1 |

### Result

Returns OK or error message.

### Description

Writes several images to disk.  
This function can be used to create multi image tiff files.  
  
See [GMImage.NewImagesFromFile](GMImageNewImagesFromFile.md) and [GMImage.NewImagesFromContainer](GMImageNewImagesFromContainer.md) for reading multi picture files.  
  
This function requires a native path. Use [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md) to convert a FileMaker path to a native path if required. If you like to have the user choose the path, you can use [FileDialog](component_FileDialog.md) functions.  
For Server be aware that server has limited permissions and may not be able to access all files on a computer.  
### See also

- [GMImage.New](GMImageNew.md)
- [GMImage.NewImagesFromContainer](GMImageNewImagesFromContainer.md)
- [GMImage.NewImagesFromFile](GMImageNewImagesFromFile.md)
- [Path.FileMakerPathToNativePath](PathFileMakerPathToNativePath.md)

### Example Databases

- [GraphicsMagick/Create GIF](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Create%20GIF.shtml#1ScriptAnchor_)
- [GraphicsMagick/Create Multi Tiff](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/GraphicsMagick/Create%20Multi%20Tiff.shtml#1ScriptAnchor_)

### Blog Entries

- [GraphicsMagick in FileMaker, part 3](https://www.mbsplugins.de/archive/2022-12-03/GraphicsMagick_in_FileMaker_pa/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 5.1pr1](https://www.mbsplugins.de/archive/2015-03-16/MBS_FileMaker_Plugin_version_5/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 3.4pr1](https://www.mbsplugins.de/archive/2013-07-29/MBS_Filemaker_Plugin_version_3/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 28th November 2019

  
[GMImage.Wave](GMImageWave.md) - [GMImage.WriteToBMPContainer](GMImageWriteToBMPContainer.md)

[HTML Version](GMImageWriteImages.shtml)