GMImage.SetIPTCProfile
----------------------

Sets the IPTC profile.

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

MBS( "GMImage.SetIPTCProfile"; ImageRef; Data ) 

**MBS**( **"GMImage.SetIPTCProfile";** /\* Sets the IPTC profile. \*/  
**$ImageRef**; /\* The image reference number.e.g. 1 \*/   
**$Data**) /\* a Container field value with an embedded file containing the profile. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| ImageRef | The image reference number. | 1 |
| Data | a Container field value with an embedded file containing the profile. |  |

### Result

Returns "OK" on success.

### Description

Sets the IPTC profile.  
### See also

- [GMImage.GetIPTCProfile](GMImageGetIPTCProfile.md)
- [GMImage.GetProfile](GMImageGetProfile.md)
- [GMImage.SetICCColorProfile](GMImageSetICCColorProfile.md)
- [GMImage.SetProfile](GMImageSetProfile.md)

### Release notes

- **Version 8.4**
    - Fixed crash with [GMImage.SetIPTCProfile](http://www.mbsplugins.eu/GMImageSetIPTCProfile.shtml), [GMImage.SetICCColorProfile](http://www.mbsplugins.eu/GMImageSetICCColorProfile.shtml) and [GMImage.SetProfile](http://www.mbsplugins.eu/GMImageSetProfile.shtml) if called with empty parameter.

### Blog Entries

- [MBS FileMaker Plugin, version 8.4pr6](https://www.mbsplugins.de/archive/2018-09-01/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)

Created 18th August 2014 , last changed 30th August 2018

  
[GMImage.SetICCColorProfile](GMImageSetICCColorProfile.md) - [GMImage.SetInterlaceType](GMImageSetInterlaceType.md)

[HTML Version](GMImageSetIPTCProfile.shtml)