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:
12.1
12.2
12.3
12.4
12.5
13.0
13.1
13.2
13.3
13.4
Statistic
FMM
Blog
Pings an image to query metadata.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
GraphicsMagick | 10.3 | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |
Parameter | Description | Example |
---|---|---|
ImageRef | The image reference number. | 1 |
Spec | The image specification. e.g. native file path |
Returns OK or error.
Ping picture and show size:
# ping in file Contacts
# you have some dummy image already
Set Variable [ $img ; Value: MBS( "GMImage.New"; "10x10"; "white" ) ]
# read new picture into it
Set Variable [ $r ; Value: MBS( "GMImage.Ping"; $img; "/Users/cs/Desktop/test.png" ) ]
If [ MBS("IsError") = 0 ]
Set Variable [ $w ; Value: MBS( "GMImage.GetWidth"; $img ) ]
Set Variable [ $h ; Value: MBS( "GMImage.GetHeight"; $img ) ]
Show Custom Dialog [ "Size" ; $w & " x " & $h ]
Else
Show Custom Dialog [ "Failed" ; $r ]
End If
Set Variable [ $r ; Value: MBS( "GMImage.Release"; $img) ]
This function checks for a license.
Created 14th July 2020, last changed 8th March 2021