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.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0    Statistic    FMM    Blog  


Pings an image to query metadata.

Component Version macOS Windows Linux Server FileMaker iOS SDK
GMImage 10.3 Yes Yes Yes Yes Yes
MBS( "GMImage.PingContainer"; ImageRef; data )   More


Parameter Description Example
ImageRef The image reference number. 1
data The container value, either a variable or a container field.


Returns OK or error.


Pings an image to query metadata.
Ping is similar to read except only enough of the image is read to determine the image columns, rows, and file size.

See GMImage.GetWidth, GMImage.GetHeight and GMImage.GetXMP.


Ping container to query size:

# 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.SetMagick"; $img; "png") ]
Set Variable [ $r ; Value: MBS( "GMImage.PingContainer"; $img; Contacts::Photo Container) ]
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 ]
    Show Custom Dialog [ "Failed" ; $r ]
End If
Set Variable [ $r ; Value: MBS( "GMImage.Release"; $img) ]

See also

Blog Entries

Release notes

Created 14th July 2020, last changed 14th July 2020

GMImage.Ping   -   GMImage.PopClipPath

Feedback: Report problem or ask question.

MBS Xojo PDF Plugins

Start Chat