/alpine-imagemagick-detect

Extract image metadata to JSON format using ImageMagick

Primary LanguageJavaScript

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: