Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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
- GMImage.GetXMP
- GMImage.New
- GMImage.NewImagesFromContainer
- GMImage.Release
- GMImage.WriteImages
- GMImage.WriteToFile
- IsError
Release notes
- Version 8.5
- Changed GMImage.NewImagesFromFile to reject .PDF file as GraphicsMagick doesn't really read PDF files.
Blog Entries
- GraphicsMagick in FileMaker, part 1
- MBS FileMaker Plugin, version 8.5pr8
- MBS FileMaker Plugin, version 5.1pr1
This function checks for a license.
Created 11st March 2015, last changed 11st April 2023