Picaxe is an IIIF 2.1-compliant image server.
- Support for
rotations
other than 0 not yet implemented. - Support for
quality
other thandefault
andcolor
not yet implemented. - Only image processing is implemented. The "Image Information Request" API is not yet implemented.
- Go 1.7 or later.
- To build/test:
- GNU Make
- Mockery:
go get github.com/vektra/mockery
Build with:
$ make
Then run:
$ make run
This will start it on the default port 7073. You can now try a URL such as:
$ curl http://localhost:7073/api/picaxe/v1/iiif/http%3A%2F%2Fi.imgur.com%2FJ1XaOIa.jpg/full/200,/0/default.png
In addition to IIIF parameters, additional parameters can be specified on the query string. For example, the following features are supported.
Images that have EXIF metadata with an orientation can be normalized for older browsers that don't support reorienting them, by passing autoOrient=true
.
To enable border trimming, pass the query parameter trimBorder
set to a value greater or equal to 0, and less than 1.0. This parameter is the "fuzz factor".
The edge of the image is considered a trimmable border iff it is contiguous with respect to color distance. A color is contiguious iff the distance to the adjacent pixel's color is less than or equal to the fuzz factor. (With a fuzz factor of 0.0, all colors are distinct.) Furthermore, the border must extend around the entire rectangular edge of the image. The algorithm trims the outer edge concentrically until a non-consecutive edge is found.
BSD. See LICENSE
file.