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: 8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2    Statistic  


Loads a picture from the given container.

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


Parameter Description Example value
data A value from a Container Field.


Returns the ImageRef number on success.


Loads a picture from the given container.
Please call GMImage.Release later to free memory for this image.
Image reference numbers are starting at 18000 and counting up for each new image.


Show with and height

Let ( [
$Image = MBS("GMImage.NewFromContainer"; GraphicsMagick::image);
$Width = MBS("GMImage.GetWidth";$Image);
$Height = MBS("GMImage.GetHeight";$Image);
$Error = MBS("GMImage.Release";$Image)
$Width & " x " & $Height )

Load from container:

MBS( "GMImage.NewFromContainer"; test::test)

See also

Example Databases

Blog Entries

FileMaker Magazin

  • Ausgabe 5/2018, Seite 29
  • Ausgabe 5/2011, Seite 32

Release notes

  • Version 9.5
    • Improved JPEG detection for byte streams, so we can detect if a PNG is actually a JPEG. Now GMImage.NewFromContainer can read JPEG, GIF, PNG, TIFF and BMP even if they are passed in wrong container format.
  • Version 9.0
  • Version 8.3
  • Version 7.2

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

GMImage.NewFromBase64   -   GMImage.NewFromFile

Feedback: Report problem or ask question.

MBS FileMaker Plugins