Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

GMImage.GetPNGAsBase64

Returns the picture in PNG format as a base64 encoded string.

Component Version macOS Windows Linux Server iOS SDK
GraphicsMagick 3.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "GMImage.GetPNGAsBase64"; ImageRef )   More

Parameters

Parameter Description Example
ImageRef The image reference number. 1

Result

Returns text.

Description

Returns the picture in PNG format as a base64 encoded string.
For the quality setting use the SetQuality function.
Useful for sending PNG image as email.

See also

Blog Entries

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


GMImage.GetOrientation - GMImage.GetPNGAsHex

Feedback: Report problem or ask question.