Sign inSign up

echizen321/metadata_extraction

By echizen321

Updated over 6 years ago

Image
0

1.4K

echizen321/metadata_extraction repository overview

TODO:
  1. write workflow of code

  2. explain deployment parameters

Usage

Run docker-compose up with the b/m docker-compose.yml and test endpoint with b/m API, body and check against expected results

docker-compose.yml
version: '3.3'

services:
    metadata_extraction:
        ports:
            - '1024:1024'
        container_name: metadata_extraction
        volumes:
            - '/home:/home'
        restart: unless-stopped
        image: echizen321/metadata_extraction:latest
docker-compose parameters
API
Endpoint and Body
POST
http://172.17.0.1:1024/MetadataExtraction
{
	"fileLocations": ["/home/plato/Desktop/few_images/faces.jpg"]
}
Expected Output
{
    "Bits Per Sample": "8",
    "Color Components": "3",
    "Comment": "CREATOR",
    "Directory": "/home/plato/Desktop/few_images",
    "Encoding Process": "Baseline DCT, Huffman coding",
    "ExifTool Version Number": "11.65",
    "File Access Date/Time": "2020",
    "File Inode Change Date/Time": "2019",
    "File Modification Date/Time": "2019",
    "File Name": "faces.jpg",
    "File Permissions": "rw-rw-r--",
    "File Size": "155 kB",
    "File Type": "JPEG",
    "File Type Extension": "jpg",
    "Image Height": "720",
    "Image Size": "1280x720",
    "Image Width": "1280",
    "JFIF Version": "1.01",
    "MIME Type": "image/jpeg",
    "Megapixels": "0.922",
    "Resolution Unit": "None",
    "X Resolution": "1",
    "Y Cb Cr Sub Sampling": "YCbCr4",
    "Y Resolution": "1"
}
Workflow: how the code works

...

Tag summary

Content type

Image

Digest

Size

378.2 MB

Last updated

over 6 years ago

docker pull echizen321/metadata_extraction