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.NewImagesFromFile

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

Parameters

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

Result

Returns list of image references or error.

Description

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.

Examples

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

Created 11st March 2015, last changed 31st July 2019


GMImage.NewImagesFromContainer - GMImage.Normalize

Feedback: Report problem or ask question.