Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
Container.ReadImageFile
Reads and convert image file.
Component | Version | macOS | Windows | Linux | Server | iOS SDK |
Container | 11.2 | ✅ Yes | ✅ Yes | ❌ No | ✅ Yes, on macOS and Windows | ✅ Yes |
MBS( "Container.ReadImageFile"; Path { ; ImageType; FileName } ) More
Parameters
Parameter | Description | Example | Flags |
---|---|---|---|
Path | The native file path. | "/Users/cs/Images/test.jpg" | |
ImageType | The type of image to return. Either JPEG, PNG, GIF or BMP. Default is JPEG. |
"JPEG" | Optional |
FileName | The filename to use for the picture. Default is "image" with the extension matching the image type. |
"test.jpg" | Optional |
Result
Returns image container or error.
Description
Reads and convert image file.This function is useful to read all the image formats supported by Apple's frameworks and convert them to a common format like JPEG or PNG.
Use this function to convert old PICT or new HEIC and HEIF images.
Added Windows support in v13.0.
Reads webp files on macOS.
Examples
Read in some picture and convert to PNG:
Set Variable [ $image ; Value: MBS( "Container.ReadImageFile"; "/Users/cs/Pictures/mond.jpg"; "PNG") ]
See also
Release notes
- Version 13.1
- Added Windows support for Container.ReadImage and Container.ReadImageFile functions to e.g. load HEIF/HEIC files on Windows.
- Version 11.2
- Added Container.ReadImageFile function.
Example Databases
Blog Entries
- MBS @ FMTraining.TV - Changing Image Formats in Containers with the MBS FileMaker Plug-in
- OCR on Windows in FileMaker
- MBS FileMaker Plugin, version 13.1pr1
- PhotoPicker for iOS with FileMaker iOS SDK
- Container
- New in MBS FileMaker Plugin 11.3
- New in MBS FileMaker Plugin 11.2
- MBS FileMaker Plugin, version 11.2pr4
This function is free to use.
Created 15th April 2021, last changed 6th June 2023