Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 1.03 KB

File metadata and controls

60 lines (49 loc) · 1.03 KB

mediaInfoService

A falcon web app to return media metadata as json

Output Examples

http://localhost:8331/

    [
        "LICENSE",
        "mediaInfoService.py",
        "Dockerfile",
        "Makefile",
        "mediaInfoService_test.py",
        "_env",
        "README.md",
        ".gitignore",
        ".git",
        "mediaInfoService_test.png",
        "mediaInfoService.pip"
    ]

http://localhost:8331/mediaInfoService_test.png

    {
        "width": 16,
        "height": 16,
        "bits_per_pixel": 24,
        "pixel_format": "RGB",
        "compr_rate": 20.210526315789473,
        "creation_date": "2019-05-23T17:18:00",
        "compression": "deflate",
        "comment": "Created with GIMP",
        "mime_type": "image/png",
        "endian": "Big endian"
    }

Use

Local

    make run
    curl "http://localhost:8331/mediaInfoService_test.png"
    make clean

Docker

    make build
    make push