Uploaded image for project: 'Bloomreach Forge'
  1. Bloomreach Forge
  2. HIPFORGE-183

[Gallery Magick] Extract and store image metadata extractable through identify command

    XMLWordPrintable

    Details

    • Similar issues:

      Description

      Both ImageMagick and GraphicsMagick support extracting image metadata through identify -verbose option. The metadata is very useful in many cases.
      So, I think it's a good idea to extract and store it in the original image resource node's @magick.metadata (string) property by default.
      Example metadata looks like this:

      Image: IMG_4181.JPG
        Format: JPEG (Joint Photographic Experts Group JFIF format)
        Geometry: 3264x2448
        Class: DirectClass
        Type: true color
        Depth: 8 bits-per-pixel component
        Channel Depths:
          Red:      8 bits
          Green:    8 bits
          Blue:     8 bits
        Channel Statistics:
          Red:
            Minimum:                     0.00 (0.0000)
            Maximum:                 65535.00 (1.0000)
            Mean:                    30364.81 (0.4633)
            Standard Deviation:      15447.23 (0.2357)
          Green:
            Minimum:                     0.00 (0.0000)
            Maximum:                 65535.00 (1.0000)
            Mean:                    26319.71 (0.4016)
            Standard Deviation:      13857.22 (0.2114)
          Blue:
            Minimum:                     0.00 (0.0000)
            Maximum:                 65535.00 (1.0000)
            Mean:                    22772.04 (0.3475)
            Standard Deviation:      13769.74 (0.2101)
        Filesize: 1.6Mi
        Interlace: No
        Orientation: TopLeft
        Background Color: white
        Border Color: #DFDFDF
        Matte Color: #BDBDBD
        Page geometry: 3264x2448+0+0
        Compose: Over
        Dispose: Undefined
        Iterations: 0
        Compression: JPEG
        JPEG-Quality: 93
        JPEG-Colorspace: 2
        JPEG-Colorspace-Name: RGB
        JPEG-Sampling-factors: 2x2,1x1,1x1
        Signature: a37c81ba09e550e38dd2b0fd8fcb367bcb5eb1e77709204a975c0948b58f7f79
        Profile-EXIF: 16380 bytes
          Make: Apple
          Model: iPhone 6
          Orientation: 1
          X Resolution: 72/1
          Y Resolution: 72/1
          Resolution Unit: 2
          Software: 10.2
          Date Time: 2018:04:03 15:29:38
          Y Cb Cr Positioning: 1
          Exif Offset: 204
          Exposure Time: 1/30
          F Number: 11/5
          Exposure Program: 2
          ISO Speed Ratings: 250
          Exif Version: 0221
          Date Time Original: 2018:04:03 15:29:38
          Date Time Digitized: 2018:04:03 15:29:38
          Components Configuration: \001\002\003\000
          Shutter Speed Value: 5845/1191
          Aperture Value: 7983/3509
          Brightness Value: 6593/4368
          Exposure Bias Value: 0/1
          Metering Mode: 5
          Flash: 16
          Focal Length: 83/20
          Subject Area: 1631
          Maker Note: Apple iOS\000\000\001MM\000\013\000\001\000\011\000\000\000\001\000\000\000\004\000\002\000\007\000\000\002.\000\000\000\230\000\003\000\007\000\000\000h\000\000\002�\000\004\000\011\000\000\000\001\000\000\000\001\000\005\000\011\000\000\000\001\000\000\000�\000\006\000\011\000\000\000\001\000\000\000�\000\007\000\011\000\000\000\001\000\000\000\001\000\010\000\012\000\000\000\003\000\000\003.\000\011\000\011\000\000\000\001\000\000\001\023\000\016\000\011\000\000\000\001\000\000\000\000\000\024\000\011\000\000\000\001\000\000\000\004\000\000\000\000bplist00O\021\002\000:\001�\001)\001\030\001`\002{\003�\002�\001�\000�\000�\000�\000�\000�\000�\000�\0009\002�\002�\001\012\001\012\001\016\001�\000�\000�\000�\000�\000�\000�\000s\000r\000k\000�\000�\000�\000�\000\223\000\200\000y\000y\000x\000t\000�\000�\000�\000\215\000\221\000\227\000n\000}\000\020\001�\000�\000\223\000\231\000�\000�\000�\000l\001h\001^\001�\000�\000�\000�\000�\000\177\001)\001�\000�\000�\000�\000�\000�\000\222\001\215\001l\001�\000�\000�\000�\000\232\0000\001,\001�\000�\000�\000�\000�\000�\000\200\001�\001c\001�\000�\000�\000:\000\220\000\016\001�\000\206\000�\000�\000�\000�\000�\000�\000 \001&\001d\000\226\000�\001Q\000�\0001\001Y\0006\000�\000�\000�\001�\000�\000�\000\213\000�\000\217\000�\000\025\001$\001�\000�\000�\000�\000�\000�\000>\001�\000�\000\235\000\226\000u\000G\000A\000j\000�\0012\001�\000\177\000�\0000\001�\001h\001�\000\207\000N\000@\000�\000n\0008\0009\000j\001"\001�\000�\000�\000�\000�\000�\000_\000�\000?\000>\000�\000=\000�\000S\000K\001�\000t\000\225\000�\000�\000�\000D\000R\000\235\000I\000\211\000�\000\177\000\225\000�\000.\001�\000e\000\232\000�\000\233\000�\000�\000�\000�\000�\000�\000r\000�\000a\001�\000�\000o\000P\000\223\000\206\000]\000�\000�\001�\000\\000g\000`\000s\000\232\000�\000�\000"\000[\000C\000\203\000\217\000e\000�\000\232\000|\000{\000j\000y\000n\000b\000u\000\207\000\026\000a\000p\000l\000\202\000\211\000�\000\213\000~\000u\000l\000\215\000\226\000{\000p\000z\000\000\010\000\000\000\000\000\000\002\001\000\000\000\000\000\000\000\001\000\000\000\000\000\000\000\000\000\000\000\000\000\000\002\014bplist00�\001\002\003\004\005\006\007\010UflagsUvalueUepochYtimescale\020\001\023\000\000��\225�w�\020\000\022;\232�\000\010\021\027\035#-/8:\000\000\000\000\000\000\001\001\000\000\000\000\000\000\000\011\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000?���>\000\000\016�\000\000\0029\000\0004v���\223\000\000<N
          Sub Sec Time Original: 123
          Sub Sec Time Digitized: 123
          Flash Pix Version: 0100
          Color Space: 1
          Exif Image Width: 3264
          Exif Image Length: 2448
          Sensing Method: 2
          Scene Type: \001
          Exposure Mode: 0
          White Balance: 0
          Focal Length In35mm Film: 29
          Scene Capture Type: 0
          0xA432: 83/20
          0xA433: Apple
          0xA434: iPhone 6 back camera 4.15mm f/2.2
          GPS Info: 1608
          GPS Latitude Ref: N
          GPS Latitude: 42/1,21/1,1463/100
          GPS Longitude Ref: W
          GPS Longitude: 71/1,3/1,3160/100
          GPS Altitude Ref: .
          GPS Altitude: 12786/359
          GPS Time Stamp: 19/1,29/1,3328/100
          GPS Speed Ref: K
          GPS Speed: 0/1
          GPS Img Direction Ref: T
          GPS Img Direction: 15709/56
          GPS Dest Bearing Ref: T
          GPS Dest Bearing: 15709/56
          GPS Date Stamp: 2018:04:03
        Tainted: False
        User Time: 0.170u
        Elapsed Time: 0m:0.173977s
        Pixels Per Second: 43.8Mi
      

        Attachments

          Activity

            People

            • Assignee:
              wko Woonsan Ko
              Reporter:
              wko Woonsan Ko
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: