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  

CGImageSource.Properties

Queries all properties as JSON.

Component Version macOS Windows Linux Server iOS SDK
CGImageSource 8.3 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "CGImageSource.Properties"; Ref { ; Index } )   More

Parameters

Parameter Description Example Flags
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 Optional

Result

Returns OK or error.

Description

Queries all properties as JSON.

Examples

Query properties for first image:

MBS("CGImageSource.Properties"; $ref; 0)

Example result:
{
  "{TIFF}" : {
    "ResolutionUnit" : 2,
    "Software" : "QuickTime 7.5.5",
    "DateTime" : "2008:10:19 13:29:12",
    "XResolution" : 72,
    "ImageDescription" : "Digital StillCamera",
    "Orientation" : 1,
    "YResolution" : 72,
    "Model" : "DC-8300",
    "Make" : "Traveler"
  },
  "{IPTC}" : {
    "DigitalCreationTime" : "142931",
    "DigitalCreationDate" : "20081015",
    "TimeCreated" : "142931",
    "DateCreated" : "20081015",
    "Caption\/Abstract" : "Digital StillCamera"
  },
  "{Exif}" : {
    "DateTimeOriginal" : "2008:10:15 14:29:31",
    "ComponentsConfiguration" : [
      1,
      2,
      3,
      0
    ],
    "MaxApertureValue" : 3.1,
    "DigitalZoomRatio" : 1,
    "ExposureBiasValue" : 0,
    "Saturation" : 0,
    "FNumber" : 4.8,
    "SceneCaptureType" : 0,
    "ShutterSpeedValue" : 6.67,
    "SubjectDistRange" : 0,
    "ApertureValue" : 4.5,
    "FileSource" : 3,
    "Sharpness" : 0,
    "ColorSpace" : 1,
    "Contrast" : 0,
    "PixelYDimension" : 267,
    "WhiteBalance" : 0,
    "LightSource" : 0,
    "FlashPixVersion" : [
      1,
      0
    ],
    "DateTimeDigitized" : "2008:10:15 14:29:31",
    "ISOSpeedRatings" : [
      50
    ],
    "ExposureMode" : 0,
    "PixelXDimension" : 200,
    "ExifVersion" : [
      2,
      2
    ],
    "CustomRendered" : 0,
    "ExposureProgram" : 2,
    "Flash" : 0,
    "ExposureTime" : 0.01,
    "FocalLenIn35mmFilm" : 68,
    "MeteringMode" : 2
  },
  "PixelHeight" : 267,
  "PixelWidth" : 200,
  "{JFIF}" : {
    "XDensity" : 72,
    "YDensity" : 72,
    "IsProgressive" : true,
    "JFIFVersion" : [
      1,
      0,
      1
    ],
    "DensityUnit" : 1
  },
  "ProfileName" : "sRGB IEC61966-2.1",
  "DPIWidth" : 72,
  "DPIHeight" : 72,
  "ColorModel" : "RGB",
  "Orientation" : 1,
  "Depth" : 8
}

See also

Release notes

Blog Entries

Created 6th June 2018, last changed 6th June 2018


CGImageSource.Keys - CGImageSource.Property

Feedback: Report problem or ask question.