Service that provides REST interface to imagemagick
1.7K
Image transformations service.
The first iteration goal:
Using docker:
$ docker pull dpokidov/transformimgs
$ docker run -p 8080:8080 dpokidov/transformimgs
To test that application started successfully:
$ curl http://localhost:8080/health
You should get 'OK' string in the response.
At the moment application provides 4 operations that accessible through HTTP endpoints:
Detailed API docs are here - http://docs.pixboost.com/api/index.html
$ docker-compose up
Dependencies:
$ go get github.com/tools/godep
$ go get github.com/dooman87/transformimgs
$ cd $GOPATH/src/github.com/dooman87/transformimgs
$ godep restore
$ go run cmd/main.go -imConvert=/usr/bin/convert
There is a JMeter performance test that you can run against a service. To make it run
$ docker-compose -f docker-compose-perf-test.yml up
$ jmeter -n -t perf-test.jmx -l ./results.jmx -e -o ./results
You can go through API docs and try it out there as well. Use
API key MTg4MjMxMzM3MA__ to transform any images from pixabay.com.
Go-swagger is used to generate swagger.json file from sources. To generate:
$ go get -u github.com/go-swagger/go-swagger/cmd/swagger
$ cd cmd/
$ swagger generate spec -o ../swagger.json
Shout out with any ideas. PRs are more than welcome.
Content type
Image
Digest
Size
103.9 MB
Last updated
over 9 years ago
docker pull dpokidov/transformimgs