Extract image metadata to JSON format using ImageMagick
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
static
templates
tmp
Dockerfile
README.md
main.go

README.md

Usage

Extract image metadata to JSON format using ImageMagick (screencast)

screenshot

Build go app for linux (from mac)
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w' -o web ./main.go
Build/push container
docker build -t jweissig/alpine-imagemagick-detect .
docker push jweissig/alpine-imagemagick-detect
Run container

https://hub.docker.com/r/jweissig/alpine-imagemagick-detect

docker pull jweissig/alpine-imagemagick-detect
docker run -it -p 5000:5000 --rm jweissig/alpine-imagemagick-detect
Connect to localhost

http://localhost:5000/

Debugging
docker ps | grep imagemagick
docker exec -it <CONTAINER ID> bash
convert example.png json: