GithubHelp home page GithubHelp logo

pbinkley / annotate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from mnyrop/annotate

1.0 4.0 1.0 66.62 MB

iiif static annotations via jekyll ๐Ÿ“œ๐Ÿ“

Home Page: http://marii.info/annotate/

Ruby 1.39% HTML 0.77% CSS 24.67% JavaScript 73.17%
minicomp iiif

annotate's Introduction

IIIF-Annotate Build Status Libraries.io for GitHub

Create/store/load static annotations on IIIF manifests via Jekyll

Getting started

Requirements

  • Ruby >=2.2
  • Jekyll >=3.5
  • Bundler >=1.12

Installing

  • Clone this repository and navigate into it:
    $ git clone https://github.com/mnyrop/annotate.git && cd annotate
  • Install dependencies:
    $ bundle install

Enhancements for creating clippings (pbinkley)

The rake task store_annotations has more functions:

  • it processes new annotations, as in the original annotate
  • it also interprets annotations to create clippings:
    • in subdirectory clippings it creates a directory structure [manifest]/[page] within which it stores clipping images, with names like 1-photo-woman-with-film-camera-1235-134-1126-637.jpg (page number, tag, title, xywh)
    • within the clippings/[manifest] directory, it creates clippings.csv, with a dump of data about all the clippings from that manifest: id,item,canvas,canvasNum,tags,texts,xywh,clippingURL,clippingImage. The id is a uuid; clippingURL can be used to retrieve the clipping image at its highest resolution, and can serve as the URI for the clipping; clippingImage contains the local path and filename of the clipping image.
    • these functions are idempotent: clipping images will only be fetched if they are not already present (otherwise it will output "No fetching [image]"), and the clippings.csv will always be regenerated from all the annotations, regardless of whether they are old or new.
    • note that the rake task needs to look at the annotations as rendered in the site, so you must run jekyll build before running the rake task. Otherwise you will see errors like error: pathspec 'annotations/heresies_01' did not match any file(s) known to git. If this happens, just run jekyll build and then run the rake task again. (This requirement will be removed in a future release.)

annotate's People

Contributors

bleching avatar mnyrop avatar pbinkley avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

timothyarthur

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.