Media_SetImageDefaults( previewQuality; previewMark )
The Media_SetImageDefaults function allows you to control the preview image quality and whether or not brackets appear in the corners of preview images. You can even choose to bypass the creation of the preview image altogether.
Parameter | Description |
---|---|
previewQuality | Quality level of the automatically generated preview image, -1 (no preview) to 1024 (maximum quality). |
previewMark | “0” or “False” to prevent preview mark brackets; “1” or “True” to restore normal bracket insertion on preview images. |
Preview Image Quality
MediaManager always stores image results at maximum quality, but FileMaker Pro cannot display these high-quality images in container fields. In order to display a visual result in container fields, MediaManager normally creates a lower quality preview image that is simultaneously placed in the container field (along with the undisplayed high-quality image).
Once scripts are debugged, you may wish to set the previewQuality parameter to “-1” to reduce execution time – if you don’t need to display a copy of the image in a container field as part of your file’s user interface. When previewQuality is set to -1, FileMaker will display field “Unknown Container Object” as an error message in the container (even though the full quality MM Image is still in the container).
Bracket Marks
To distinguish preview images from the high-quality image, MediaManager normally adds bracket marks to the corners of the preview image. To prevent marking of the previews, set the previewMark parameter to “False”. While MediaManager is is demo mode, preview marking cannot be turned off.
Demo Note
Bracket marks cannot be turned off when MediaManager is in demo mode. You can only turn off bracket mark creation when you have registered your copy of MediaManager.
Examples
To set the default so a preview image of medium quality is created (with bracket marks):
Set Field [ MyTable::Response ;
Media_SetImageDefaults ( 512 ; True ) ]
To set the default so a preview image of maximum quality is created (with bracket marks):
Set Field [ MyTable::Response ;
Media_SetImageDefaults ( 1024 ; True ) ]
To set the default so no preview image is created:
Set Field [ MyTable::Response ;
Media_SetImageDefaults ( -1 ; True ) ]
To set the default so a preview image of maximum quality is created without bracket marks:
Set Field [ MyTable::Response ;
Media_SetImageDefaults ( 1024 ; False ) ]