Code Monkey home page Code Monkey logo

iiif-static-book's Introduction

iiif-static-book

NB: Python 3 only

WORK IN PROGRESS

Aim is to create a simple program that will generate a set of static tiles and a manifest for a set of images of a book. Based on:

Use

Generate tiles and manifest (in tmp by default, -h for help):

> ./iiif-static-book.py testdata/book1

Processing testdata/book1 directory, will use book_id 'book1'
Expecting files in tmp/book1 to be hosted as http://localhost:9876/book1
View: http://universalviewer.io/uv.html?manifest=http://localhost:9876/book1/manifest.json

Run web server (on port 9876) and load http://universalviewer.io/uv.html?manifest=http://localhost:9876/book1/manifest.json in browser:

> ./http-server-with-cors.py 9876
Starting server from tmp directory
Serving HTTP on 0.0.0.0 port 9876 ...
127.0.0.1 - - [13/Oct/2017 09:30:37] "GET /book1/manifest.json HTTP/1.1" 200 -
127.0.0.1 - - [13/Oct/2017 09:30:38] "GET /book1/00000001/info.json HTTP/1.1" 200 -
127.0.0.1 - - [13/Oct/2017 09:30:38] "GET /book1/00000001/full/90,/0/default.jpg?t=1507901438209 HTTP/1.1" 200 -
127.0.0.1 - - [13/Oct/2017 09:30:38] "GET /book1/00000002/full/90,/0/default.jpg?t=1507901438209 HTTP/1.1" 200 -
127.0.0.1 - - [13/Oct/2017 09:30:38] "GET /book1/00000003/full/90,/0/default.jpg?t=1507901438210 HTTP/1.1" 200 -
...

iiif-static-book's People

Contributors

zimeon avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  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.