Skip to content

Instantly share code, notes, and snippets.

@charrismatic
Last active July 15, 2019 20:37
Show Gist options
  • Save charrismatic/c7d66a2aba9d74b1a8c8bf887a67479e to your computer and use it in GitHub Desktop.
Save charrismatic/c7d66a2aba9d74b1a8c8bf887a67479e to your computer and use it in GitHub Desktop.
CashApp QR Code Encoded Data

Image meta data

command

identify -verbose mattharrisqr.jpg > metadata.txt

Output

Image: mattharrisqr.jpg
  Format: JPEG (Joint Photographic Experts Group JFIF format)
  Mime type: image/jpeg
  Class: DirectClass
  Geometry: 612x776+0+0
  Units: Undefined
  Type: TrueColor
  Endianess: Undefined
  Colorspace: sRGB
  Depth: 8-bit
  Channel depth:
    red: 8-bit
    green: 8-bit
    blue: 8-bit
  Channel statistics:
    Pixels: 474912
    Red:
      min: 0 (0)
      max: 255 (1)
      mean: 228.711 (0.896906)
      standard deviation: 65.435 (0.256608)
      kurtosis: 5.18463
      skewness: -2.55898
      entropy: 0.378229
    Green:
      min: 0 (0)
      max: 255 (1)
      mean: 227.613 (0.892601)
      standard deviation: 65.9672 (0.258695)
      kurtosis: 4.81928
      skewness: -2.46838
      entropy: 0.374817
    Blue:
      min: 0 (0)
      max: 255 (1)
      mean: 228.655 (0.896687)
      standard deviation: 65.6114 (0.2573)
      kurtosis: 5.28078
      skewness: -2.56832
      entropy: 0.368795
  Image statistics:
    Overall:
      min: 0 (0)
      max: 255 (1)
      mean: 228.326 (0.895398)
      standard deviation: 65.6716 (0.257536)
      kurtosis: 5.09267
      skewness: -2.53167
      entropy: 0.373947
  Rendering intent: Perceptual
  Gamma: 0.454545
  Chromaticity:
    red primary: (0.64,0.33)
    green primary: (0.3,0.6)
    blue primary: (0.15,0.06)
    white point: (0.3127,0.329)
  Background color: white
  Border color: srgb(223,223,223)
  Matte color: grey74
  Transparent color: black
  Interlace: JPEG
  Intensity

Decode QR image

Command

zbarimg -v -v -v mattharrisqr.jpg

Output

QR-Code:https://cash.me/$4mattharris?qr=1
scanned 1 barcode symbols from 1 images in 0.06 seconds

dump_stats: symbol sets allocated   = 1   
dump_stats:     scanner syms in use = 0   	recycled  = 0   
dump_stats:     image syms in use   = 0   	recycled  = 0   
dump_stats: symbols allocated       = 1   
dump_stats:      recycled[0]        = 0   
dump_stats:      recycled[1]        = 0   
dump_stats:      recycled[2]        = 0   
dump_stats:      recycled[3]        = 0   
dump_stats:      recycled[4]        = 0   
_zbar_qr_destroy: max finder lines = 255x255
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment