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
10.6
Statistic
FMM
Blog
GMImage.NewFromContainer
Loads a picture from the given container.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| GraphicsMagick | 2.0 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| data | A value from a Container Field. Can include various image formats like JPEG, PNG or just containers with FILE data. |
Result
Returns the ImageRef number on success.
Description
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.
If image doesn't load, please check whether it's a HEIC, HEIF or RAW image. For those, please use Container.ReadImage first to convert on macOS/iOS.
Examples
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
- GMImage.NewImagesFromContainer
- GMImage.ReadContainer
- GMImage.Trim
- GMImage.WriteToContainer
- GMImage.WriteToFile
- GMImage.WriteToPDFContainer
- ImageView.CreateWithSize
- OCR.GetTextWithCoordinates
- OCR.SetImage
- XL.Book.AddPictureContainer
Example Databases
- GraphicsMagick/Combine Pictures
- GraphicsMagick/Correct Image Orientation
- GraphicsMagick/Export Images
- GraphicsMagick/Find Pixels
- GraphicsMagick/GraphicsMagick Exif
- GraphicsMagick/GraphicsMagick IPTC
- GraphicsMagick/Image Croping
- GraphicsMagick/Invert
- GraphicsMagick/Rotate Orientation
- Mac and iOS/Machine Learning/Core ML Photos
Blog Entries
- What is new in the MBS FileMaker Plugin Version 10.4
- Neues MBS FileMaker Plugin 9.5
- MBS FileMaker Plugin 9.5 - More than 5900 Functions In One Plugin
- MBS FileMaker Plugin, version 9.5pr3
- New MBS FileMaker Plugin 9.0
- Neues MBS FileMaker Plugin 9.0
- MBS FileMaker Plugin, version 9.0pr6
- MBS FileMaker Plugin, version 8.6pr5
- Correct Image Orientation in FileMaker
- MBS FileMaker Plugin, version 8.3pr7
FileMaker Magazin
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
- Improved error handling for GMImage.NewFromContainer, so we pass on error messages from GraphicsMagick.
- Version 8.3
- Fixed GMImage.NewFromContainer to handle SVG files better.
- Version 7.2
- Fixed a bug with GMImage.NewFromContainer where referenced image file would stay open.
Created 18th August 2014, last changed 27th November 2020
GMImage.NewFromBase64 - GMImage.NewFromFile
Feedback: Report problem or ask question.
Links
MBS Xojo Plugins