Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

GraphicsMagick Exif

All examples are included with download of MBS FileMaker Plugin.

GraphicsMagick Exif.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
Value Lists0
Custom Functions0
Custom Menus33
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
GraphicsMagick Exif
3 fields defined, 44 records
GraphicsMagick Exif

Fields

Table Name: GraphicsMagick Exif - 3 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
InputImageNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
      TagNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ValueNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German

              Layout Objects: GraphicsMagick Exif

              Regular Fields

              Field Name: GraphicsMagick Exif::InputImage
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 75 pt
              • Left: 16 pt
              • Bottom: 200 pt
              • Right: 269 pt
              • Anchoring: Left, Top
              Field Format:
              • Edit Box
              Field Behavior:
              • Allow field to be entered: In Find mode, In Browse mode
              • Touch keyboard type: System Default
              • Go to next field using: Tab key
              No

              Field Name: GraphicsMagick Exif::Tag
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 252 pt
              • Left: 6 pt
              • Bottom: 275 pt
              • Right: 259 pt
              • Anchoring: Left, Top
              Field Format:
              • Edit Box
              Field Behavior:
              • Allow field to be entered: In Find mode, In Browse mode
              • Touch keyboard type: System Default
              • Go to next field using: Tab key
              Yes

              Field Name: GraphicsMagick Exif::Value
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 252 pt
              • Left: 264 pt
              • Bottom: 275 pt
              • Right: 517 pt
              • Anchoring: Left, Top
              Field Format:
              • Edit Box
              Field Behavior:
              • Allow field to be entered: In Find mode, In Browse mode
              • Touch keyboard type: System Default
              • Go to next field using: Tab key
              Yes

              Buttons

              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Get Exif
              • Top: 121 pt
              • Left: 352 pt
              • Bottom: 154 pt
              • Right: 465 pt
              • Anchoring: Left, Top
              Perform Script [ “Run” ]

              Scripts:


              Script Hierarchy

              Run

              Script NameRun
              Run script with full access privilegesOff
              Include In MenuYes
              Layouts that use this script
              Scripts that use this script
                Script Definition
                Script Steps
                • #we query the metadata (Exif) of a picture.The properties that we wants are in the list. We get the value for each property and store it in the Database
                • Delete All Records [ No dialog ]
                • Set Variable [ $tags; Value:"GPSLatitudeRef¶GPSLatitude¶GPSLongitudeRef¶GPSLongitude¶GPSAltitudeRef¶GPSAltitude¶GPSTimeStamp¶GPSSatellites¶GPSStatus¶GPSMeasureMode¶GPSDOP¶GPSSpeedRef¶GPSSpeed¶GPSTrackRef¶GPSTrack¶GPSImgDirectionRef¶GPSImgDirection¶GPSMapDatum¶GPSDestLatitudeRef¶GPSDestLatitude¶GPSDestLongitudeRef¶GPSDestLongitude¶GPSDestBearingRef¶GPSDestBearing¶GPSDestDistanceRef¶GPSDestDistance¶GPSDateStamp¶ImageWidth¶ImageLength¶BitsPerSample¶Compression¶PhotometricInterpretation¶FillOrder¶DocumentName¶ImageDescription¶Make¶Model¶StripOffsets¶Orientation¶SamplesPerPixel¶RowsPerStrip¶StripByteCounts¶MinSampleValue¶MaxSampleValue¶XResolution¶YResolution¶PlanarConfiguration¶PageName¶XPosition¶YPosition¶FreeOffsets¶FreeByteCounts¶GrayResponseUnit¶GrayResponseCurve¶T4Options¶T6Options¶ResolutionUnit¶TransferFunction¶Software¶DateTime¶Artist¶HostComputer¶Predictor¶WhitePoint¶PrimaryChromaticities¶ColorMap¶HalfToneHints¶TileWidth¶TileLength¶TileOffsets¶TileByteCounts¶SubIFD¶InkSet¶InkNames¶NumberOfInks¶DotRange¶TargetPrinter¶ExtraSample¶SampleFormat¶SMinSampleValue¶SMaxSampleValue¶TransferRange¶ClipPath¶XClipPathUnits¶YClipPathUnits¶Indexed¶JPEGTables¶OPIProxy¶JPEGProc¶JPEGInterchangeFormat¶JPEGInterchangeFormatLength¶JPEGRestartInterval¶JPEGLosslessPredictors¶JPEGPointTransforms¶JPEGQTables¶JPEGDCTables¶JPEGACTables¶YCbCrCoefficients¶YCbCrSubSampling¶YCbCrPositioning¶ReferenceBlackWhite¶ExtensibleMetadataPlatform¶Gamma¶ICCProfileDescriptor¶SRGBRenderingIntent¶ImageTitle¶ResolutionXUnit¶ResolutionYUnit¶ResolutionXLengthUnit¶ResolutionYLengthUnit¶PrintFlags¶PrintFlagsVersion¶PrintFlagsCrop¶PrintFlagsBleedWidth¶PrintFlagsBleedWidthScale¶HalftoneLPI¶HalftoneLPIUnit¶HalftoneDegree¶HalftoneShape¶HalftoneMisc¶HalftoneScreen¶JPEGQuality¶GridSize¶ThumbnailFormat¶ThumbnailWidth¶ThumbnailHeight¶ThumbnailColorDepth¶ThumbnailPlanes¶ThumbnailRawBytes¶ThumbnailSize¶ThumbnailCompressedSize¶ColorTransferFunction¶ThumbnailData¶ThumbnailImageWidth¶ThumbnailImageHeight¶ThumbnailBitsPerSample¶ThumbnailCompression¶ThumbnailPhotometricInterp¶ThumbnailImageDescription¶ThumbnailEquipMake¶ThumbnailEquipModel¶ThumbnailStripOffsets¶ThumbnailOrientation¶ThumbnailSamplesPerPixel¶ThumbnailRowsPerStrip¶ThumbnailStripBytesCount¶ThumbnailResolutionX¶ThumbnailResolutionY¶ThumbnailPlanarConfig¶ThumbnailResolutionUnit¶ThumbnailTransferFunction¶ThumbnailSoftwareUsed¶ThumbnailDateTime¶ThumbnailArtist¶ThumbnailWhitePoint¶ThumbnailPrimaryChromaticities¶ThumbnailYCbCrCoefficients¶ThumbnailYCbCrSubsampling¶ThumbnailYCbCrPositioning¶ThumbnailRefBlackWhite¶ThumbnailCopyRight¶LuminanceTable¶ChrominanceTable¶FrameDelay¶LoopCount¶PixelUnit¶PixelPerUnitX¶PixelPerUnitY¶PaletteHistogram¶RelatedImageFileFormat¶ImageID¶Matteing¶DataType¶ImageDepth¶TileDepth¶CFARepeatPatternDim¶CFAPattern¶BatteryLevel¶Copyright¶ExposureTime¶FNumber¶IPTC/NAA¶IT8RasterPadding¶IT8ColorTable¶ImageResourceInformation¶ExifOffset¶InterColorProfile¶ExposureProgram¶SpectralSensitivity¶GPSInfo¶ISOSpeedRatings¶OECF¶ExifVersion¶DateTimeOriginal¶DateTimeDigitized¶ComponentsConfiguration¶CompressedBitsPerPixel¶ShutterSpeedValue¶ApertureValue¶BrightnessValue¶ExposureBiasValue¶MaxApertureValue¶SubjectDistance¶MeteringMode¶LightSource¶Flash¶FocalLength¶MakerNote¶UserComment¶SubSecTime¶SubSecTimeOriginal¶SubSecTimeDigitized¶FlashPixVersion¶ColorSpace¶ExifImageWidth¶ExifImageLength¶InteroperabilityOffset¶FlashEnergy¶SpatialFrequencyResponse¶Noise¶FocalPlaneXResolution¶FocalPlaneYResolution¶FocalPlaneResolutionUnit¶ImageNumber¶SecurityClassification¶ImageHistory¶SubjectLocation¶ExposureIndex¶TIFF_EPStandardID¶SensingMethod¶FileSource¶SceneType¶CFAPattern¶CustomRendered¶ExposureMode¶WhiteBalance¶DigitalZoomRatio¶FocalLengthIn35mmFilm¶SceneCaptureType¶GainControl¶Contrast¶Saturation¶Sharpness¶DeviceSettingDescription¶SubjectDistanceRange¶ImageUniqueID" ]
                • #load from container
                • Set Variable [ $img; Value:MBS("GMImage.NewFromContainer"; GraphicsMagick Exif::InputImage) ]
                • #Determine number of loop passes
                • Set Variable [ $count; Value:ValueCount ( $tags ) ]
                • Set Variable [ $index; Value:1 ]
                • Loop
                • #get the property name from the list
                • Set Variable [ $tag; Value:GetValue ( $tags; $index ) ]
                • #Get the value of the property
                • Set Variable [ $value; Value:MBS("GMImage.GetAttribute"; $img; "EXIF:" & $tag) ]
                • If [ $value ≠ "unknown" ]
                • #Write the property and the value in a new record
                • New Record/Request
                • Set Field [ GraphicsMagick Exif::Tag; $tag ]
                • Set Field [ GraphicsMagick Exif::Value; $value ]
                • Commit Records/Requests [ No dialog ]
                • End If
                • Set Variable [ $index; Value:$index +1 ]
                • Exit Loop If [ $index > $count ]
                • End Loop
                • # release environment
                • Set Variable [ $r; Value:MBS("GMImage.Free"; $img) ]
                Fields used in this script
                Scripts used in this script
                  Layouts used in this script
                    Tables used in this script
                    Table occurrences used by this script
                    Custom Functions used by this script
                      Custom menu set used by this script

                        Download example: GraphicsMagick Exif

                        Used functions: