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.1   7.2   7.3   7.4   7.5   8.0   8.1   8.2   8.3   8.4    Statistic  

GMImage.SetICCColorProfile

Sets the ICC color profile.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
GraphicsMagick 2.0 Yes Yes Yes Yes Yes

MBS( "GMImage.SetICCColorProfile"; ImageRef; data )

Parameters

Parameter Description Example value
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 ICC color profile.
Supplied via a Blob since GraphicsMagick do not currently support formatting this data structure directly.
If there is not already an ICC color profile, the profile is merely attached to the image without transforming the pixels. If there is already an ICC color profile (the source profile), the pixels are translated according to the source and target profiles, and the existing profile is replaced with the target profile.
Also see GMImage.SetRenderingIntent, which allows specifying the rendering intent if the profile is executed.
Specifications for ICC color profiles and their usage are available from the International Color Consortium for the format of ICC color profiles.

Examples

Removes an existing profile:

MBS("GMImage.SetICCColorProfile"; $Image; "")

Assigns new profile from container:

MBS("GMImage.SetICCColorProfile"; $Image; MyTable::ProfileContainer);

See also

Example Databases

Created 18th August 2014, last changed 10th October 2017


GMImage.SetGifDisposeMethod   -   GMImage.SetIPTCProfile

Feedback: Report problem or ask question.




Links
MBS Xojo Plugins