GMImage.GetProfile
------------------

Retrieve a named profile from the image.

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

MBS( "GMImage.GetProfile"; ImageRef; Name { ; FileName } ) 

**MBS**( **"GMImage.GetProfile"** /\* Retrieve a named profile from the image. \*/  
**$ImageRef**; /\* The image reference number. e.g. 1 \*/   
**$Name**; /\* the string with the name of the profile. e.g. "IPTC" \*/   
**$FileName**) /\* Optional; The filename to use for the profile. Default is "profile". e.g. "myprofile.icc" \*/ 

### Parameters

| Parameter | Description | Example | Flags |
|---|---|---|---|
| ImageRef | The image reference number. | 1 |  |
| Name | the string with the name of the profile. | "IPTC" |  |
| FileName | The filename to use for the profile. Default is "profile". | "myprofile.icc" | Optional |

### Result

Returns a container file value with the embedded profile file.

### Description

Retrieve a named profile from the image.   
Valid names are: "8BIM", "8BIMTEXT", "APP1", "EXIF", "APP1JPEG", "ICC", "ICM", &amp; "IPTC" or an existing user/format-defined profile name.  
### Examples

Get EXIF data blob:

 MBS ( "GMImage.GetProfile"; $img ; "EXIF" )  
### See also

- [GMImage.GetIPTCProfile](GMImageGetIPTCProfile.md)
- [GMImage.NewFromFile](GMImageNewFromFile.md)
- [GMImage.Profiles](GMImageProfiles.md)
- [GMImage.SetIPTCProfile](GMImageSetIPTCProfile.md)
- [GMImage.SetProfile](GMImageSetProfile.md)

### Blog Entries

- [MBS Filemaker Plugin 2.4 release notes](https://www.mbsplugins.de/archive/2011-10-11/MBS_Filemaker_Plugin_24_releas/monkeybreadsoftware_blog_filemaker)
- [MBS Filemaker Plugin, version 2.4pr3](https://www.mbsplugins.de/archive/2011-05-14/MBS_Filemaker_Plugin_version_2/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 18th August 2014 , last changed 19th January 2018

  
[GMImage.GetPixelColor](GMImageGetPixelColor.md) - [GMImage.GetQuality](GMImageGetQuality.md)

[HTML Version](GMImageGetProfile.shtml)