Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Loads a picture file with several files.

Component Version macOS Windows Linux Server iOS SDK
GraphicsMagick 5.1 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "GMImage.NewImagesFromFile"; Path )   More


Parameter Description Example
Path The platform specific file path. "/test.tif"


Returns list of image references or error.


Loads a picture file with several files.
This is for loading multi image tiff files.
Please call GMImage.Release later to free memory for each image.
Image reference numbers are starting at 18000 and counting up for each new image.


Loads from file and writes to other file:

Set Variable [$img; Value:MBS("GMImage.NewImagesFromFile"; "/Users/cs/Desktop/test.jpg")]
If [MBS("IsError") = 0]
    Set Variable [$r; Value:MBS( "GMImage.WriteToFile"; $img; "/Users/cs/Desktop/test.tif" )]
    Set Variable [$r; Value:MBS( "GMImage.Release"; $img)]
End If

See also

Release notes

Blog Entries

This function checks for a license.

Created 11st March 2015, last changed 11st April 2023

GMImage.NewImagesFromContainer - GMImage.Normalize