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  

Container.ReadImageFile

Reads and convert image file.

Component Version macOS Windows Linux Server iOS SDK
Container 11.2 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ 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.

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 11.2
    • Added Container.ReadImageFile function.

Blog Entries

Created 15th April 2021, last changed 23th April 2021


Container.ReadImage - Container.Remove

Feedback: Report problem or ask question.




Links
MBS FileMaker tutorial videos

Start Chat