Runs the color summarizer as a web application that can be queried.
docker pull mgamga/color-summarizer
docker-compose build
docker-compose up
This will run the app in port 4567
. Test it visiting:
http://localhost:4567/pretty?url=https://c2.staticflickr.com/8/7411/11187582405_2befbdca1e.jpg
You should see something like this:
The app expects a /:type?url=IMAGE_URL
request where type
can be text
, json
, xml
, or pretty
and url
has to be a valid URL to an image file. If no type
is specified json
will be assumed.
Get the source code in https://github.com/dpla/color-summarizer-docker
Get the Docker container in https://hub.docker.com/r/mgamga/color-summarizer/
Color summarizer by Martin Krzywinski
Matt Miller did the Docker summarizer on which this project is based.
James Higginbotham's tutorial on Docker and Sinatra APIs.
Sample image via The Finnish Museum of Photography.