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
CGImageSource.Keys
Queries the list of keys for all the properties in the image source.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| CGImageSource | 3.4 | Yes | No | No | Yes, macOS only | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| Ref | The image source reference number returned by CGImageSource.CreateWithData, CGImageSource.CreateWithPath or CGImageSource.CreateWithURL | $ref |
| Index | The index of the image to query. -1 for global properties. Else a number from 0 to CGImageSource.Count-1. | 0 |
Result
Returns the list of keys or error message.
Description
Queries the list of keys for all the properties in the image source.The list of keys varies depending on which image format is used and whether EXIF, IPTC or XMP metadata is available.
e.g. keys for a JPEG image:
{TIFF}.Software, {TIFF}.Orientation, {TIFF}.DateTime, {TIFF}.Artist, {TIFF}.Make, {TIFF}.Model, Depth, {IPTC}.Byline, {IPTC}.SpecialInstructions, {IPTC}.DigitalCreationDate, {IPTC}.DigitalCreationTime, {IPTC}.DateCreated, {IPTC}.TimeCreated, {IPTC}.StarRating, PixelHeight, {Exif}.ExifVersion, {Exif}.Flash, {Exif}.CameraOwnerName, {Exif}.LensModel, {Exif}.RecommendedExposureIndex, {Exif}.SubsecTimeOriginal, {Exif}.ExposureMode, {Exif}.LensSpecification, {Exif}.LensSerialNumber, {Exif}.FNumber, {Exif}.PixelYDimension, {Exif}.ApertureValue, {Exif}.FocalPlaneXResolution, {Exif}.MeteringMode, {Exif}.FocalPlaneResolutionUnit, {Exif}.ISOSpeedRatings, {Exif}.ExposureBiasValue, {Exif}.ShutterSpeedValue, {Exif}.SceneCaptureType, {Exif}.MaxApertureValue, {Exif}.CustomRendered, {Exif}.FocalLength, {Exif}.FocalPlaneYResolution, {Exif}.DateTimeOriginal, {Exif}.FlashPixVersion, {Exif}.SubsecTime, {Exif}.ColorSpace, {Exif}.PixelXDimension, {Exif}.SubsecTimeDigitized, {Exif}.SensitivityType, {Exif}.DateTimeDigitized, {Exif}.BodySerialNumber, {Exif}.ComponentsConfiguration, {Exif}.WhiteBalance, {Exif}.ExposureTime, {Exif}.ExposureProgram, {JFIF}.DensityUnit, {JFIF}.YDensity, {JFIF}.JFIFVersion, {JFIF}.XDensity, ProfileName, DPIWidth, {ExifAux}.LensID, {ExifAux}.SerialNumber, {ExifAux}.FlashCompensation, {ExifAux}.LensInfo, {ExifAux}.LensSerialNumber, {ExifAux}.LensModel, {ExifAux}.Firmware, DPIHeight, ColorModel, Orientation and PixelWidth.
Examples
Queries keys for an image:
Set Variable [ $img ; Value: MBS( "CGImageSource.CreateWithData"; test::input ) ]
Show Custom Dialog [ "Keys" ; MBS( "CGImageSource.Keys"; $img; 0) ]
Set Variable [ $r ; Value: MBS( "CGImageSource.Release"; $img ) ]
See also
- CGImageSource.Count
- CGImageSource.CreateWithData
- CGImageSource.CreateWithPath
- CGImageSource.CreateWithURL
- CGImageSource.Property
- CGImageSource.Release
- CGImageSource.Status
- CGImageSource.Type
Example Databases
Blog Entries
Created 18th August 2014, last changed 5th January 2018
CGImageSource.ImageAtIndex - CGImageSource.Properties
Feedback: Report problem or ask question.
Links
MBS FileMaker tutorial videos