Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 7.5   8.0   8.1   8.2   8.3   8.4   8.5   9.0   9.1   9.2    Statistic  


Add or remove a named profile to/from the image.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
GraphicsMagick 2.0 Yes Yes Yes Yes Yes
MBS( "GMImage.SetProfile"; ImageRef; name; data )   More


Parameter Description Example value
ImageRef The image reference number. 1
name The string with the name of the profile. "IPTC"
data The container field value with the embedded profile file.


Returns "OK" on success.


Add or remove a named profile to/from the image.
Remove the profile by passing an empty container field. Valid names are "*", "8BIM", "ICM", "IPTC", "EXIF", or a user/format-defined profile name.


Remove XMP:

Set Variable [$Result; Value:MBS( "GMImage.SetProfile"; $imageRef; "XMP"; "" )]

Remove IPTC:

Set Variable [$Result; Value:MBS( "GMImage.SetProfile"; $imageRef; "IPTC"; "" )]

Remove EXIF:

Set Variable [$Result; Value:MBS( "GMImage.SetProfile"; $imageRef; "EXIF"; "" )]

Clear all profiles:

Set Variable [ $Image ; Value: MBS("GMImage.NewFromContainer"; MyTable::BMPContainer) ]
# remove metadata
Set Variable [$Result; Value:MBS( "GMImage.SetProfile"; $Image; "EXIF"; "" )]
Set Variable [$Result; Value:MBS( "GMImage.SetProfile"; $Image; "IPTC"; "" )]
Set Variable [$Result; Value:MBS( "GMImage.SetProfile"; $Image; "XMP"; "" )]
# write back as JPEG
Set Variable [ $r ; Value: MBS("GMImage.SetQuality";$Image; 90) ]
Set Field [ MyTable::JPEGContainer ; MBS("GMImage.WriteToJPEGContainer"; $Image) ]
Set Variable [ $r ; Value: MBS("GMImage.Release";$Image) ]

See also

Blog Entries

Created 18th August 2014, last changed 21st December 2018

GMImage.SetPixelColor   -   GMImage.SetQuality

Feedback: Report problem or ask question.

MBS FileMaker Plugins