Giter VIP home page Giter VIP logo

picaxe's Introduction

Picaxe

Picaxe is an IIIF 2.1-compliant image server.

Limitations

  • Support for rotations other than 0 not yet implemented.
  • Support for quality other than default and color not yet implemented.
  • Only image processing is implemented. The "Image Information Request" API is not yet implemented.

Requirements

  • Go 1.7 or later.
  • To build/test:
    • GNU Make
    • Mockery: go get github.com/vektra/mockery

Running

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

Features

In addition to IIIF parameters, additional parameters can be specified on the query string. For example, the following features are supported.

Automatic orientation

Images that have EXIF metadata with an orientation can be normalized for older browsers that don't support reorienting them, by passing autoOrient=true.

Border trimming

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.

License

BSD. See LICENSE file.

picaxe's People

Contributors

atombender avatar eemeyer avatar shebiki avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.