Media_ListImageOutputTypes
Media_ListImageOutputTypes gives you a list of all output image types available with your installed version of QuickTime. These are the image types that MediaManager can convert to and export.
No parameters used.
Image Output Limitations
QuickTime can read a large number of image types. However, it can convert to and export only a subset of these, due to patent and licensing limitations. For example, basic QuickTime cannot export GIF.
The output image type list can be placed in a popup menu and the selection passed to the Media_ConvertImage function.
Returns
This function returns a list of available image output formats, including standard image abbreviations. A common response might look like this:
BMPf|bmp|BMP
JPEG|jpg|JPEG
jp2 |jp2|JPEG 2000 Image
PNTG|pnt|MacPaint
8BPS|psd|Photoshop
PICT|pct|PICT
PNGf|png|PNG
qtif|qti|QuickTime Image
.SGI|sgi|SGI Image
TPIC|tga|TGA
TIFF|tif|TIFF
Examples
To place the output type list into a global text field named “gTypes”:
Set Field [ MyTable::gTypes;
Media_ListImageOutputTypes ]
To use the output type list as a popup menu in a field, create a text calculation field equal to “Media_ListImageOutputTypes” and then set your selection field to use the calculation field as a value list. You can then call Media_ConvertImage within a script, and reference the selected output type:
Set Field [ MyTable::Image Converted;
Media_ConvertImage (
".A/image examples/logo.gif" ;
"TIFF" ) ]