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.WriteToTiffContainer
Writes the picture in TIFF format to a container value which you can store in a container field.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| GraphicsMagick | 4.4 | Yes | Yes | Yes | Yes | Yes |
Parameters
| Parameter | Description | Example | Flags |
|---|---|---|---|
| ImageRef | The image reference number. | 1 | |
| Filename | The file name to use for the container. Default is "image.tif" | "ball.tif" | Optional |
Result
Returns a container value.
Description
Writes the picture in TIFF format to a container value which you can store in a container field.For preview a JPEG version is included as well as a file name "image.tif" and the image size.
See also GMImage.WriteToFile, GMImage.WriteToJPEGContainer, GMImage.WriteToPNGContainer, GMImage.WriteToBMPContainer and GMImage.WriteToGIFContainer.
Examples
Get a container value from the picture in Tiff format.
MBS( "GMImage.WriteToTiffContainer"; $MyImageRef; "logo.tif" )
Convert image to 1 bit TIFF:
# Load from container
$Image = MBS("GMImage.NewFromContainer"; GraphicsMagick::image);
# make black and white with threshold
$Result = MBS("GMImage.Threshold";$Image; 127);
# mark as monochrome image
$Result = MBS("GMImage.SetMonochrome";$Image; 1);
# set type to 1 for black/white
$Result = MBS("GMImage.SetType";$Image; 1);
# set to use TIFF for compression
$Result = MBS("GMImage.SetMagick";$Image; "TIFF");
# set to use CCITT 4 Fax compression
$Result = MBS("GMImage.SetCompressType";$Image; 4);
# and write to a file
$Result = MBS("GMImage.WriteToTiffContainer"; $Image; "test.tif");
# cleanup
$Error = MBS("GMImage.Release";$Image)
See also
- GMImage.New
- GMImage.Release
- GMImage.SetCompressType
- GMImage.SetMonochrome
- GMImage.Threshold
- GMImage.WriteToBMPContainer
- GMImage.WriteToContainer
- GMImage.WriteToGIFContainer
- GMImage.WriteToJPEGContainer
- GMImage.WriteToPDFContainer
Example Databases
Blog Entries
- [ANN] MBS FileMaker Plugin 4.4 for OS X/Windows - More than 2800 Functions In One Plugin
- MBS Filemaker Plugin, version 4.4pr6
Created 16th October 2014, last changed 21st December 2018
GMImage.WriteToPNGContainer - GMImage.XResolution
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos