jhurliman

jhurliman / PNGImageHistogram / 0.1.2

PNG Image Histogram

Royalty Free
Create RGBA histogram data arrays from a PNG image
Language
JavaScript
Metrics
API Calls - 13 Avg call duration - N/A
Permissions
The MIT License is a permissive free software license originating at the Massachusetts Institute of Technology (MIT). Learn More

Run an Example

Input
Output
{
  "height": 412,
  "histograms": {
    "a": [
      0,
      0,
      0,
      0,
      0,
      0,
      0,
      180456
    ],
    "b": [
      0,
      1331,
      775,
      1050,
      6687,
      14720,
      56867,
      99026
    ],
    "g": [
      0,
      1119,
      969,
      859,
      805,
      1239,
      42939,
      132526
    ],
    "l": [
      0,
      270,
      1562,
      844,
      909,
      1498,
      48884,
      126489
    ],
    "r": [
      0,
      270,
      60,
      1820,
      1076,
      12912,
      23989,
      140329
    ]
  },
  "width": 438
}

Install and Use

Install

Install the Algorithmia CLI client by running:

curl -sSLf https://algorithmia.com/install.sh | sh

Then authenticate by running:

$ algo auth
# When prompted for api endpoint, hit enter
# When prompted for API key, enter your key: YOUR_API_KEY
CLI Install Docs

Use



algo run jhurliman/PNGImageHistogram/0.1.2 -d '{
  "input_file":"data://jhurliman/jhurliman/4a.png",
  "bins":8
}' --timeout 300
  
CLI Docs