$ go get github.com/lotrekagency/piuma
Since this project automates two applications, you will need them to be installed on your machine for us to be able to reach them:
$ piuma
You can also change the default port
and mediapath
, type
$ piuma --help
for more info.
https://yourpiumahost/Options/Image_URL
Where options are values separated by _
width_height_quality
Where quality
is a value between 0 and 100.
To get your image resized to 100 x 100:
https://yourpiumahost/100_100/Image URL
If you want to specify only the width
, you'll get a new image keeping the ratio:
https://yourpiumahost/100/Image URL
If you want to specify only the height
https://yourpiumahost/0_100/Image URL
To run the unit tests, change to the directory with tests (files ending with _test.go
contain unit tests) and run:
$ go test -v ./...