With the browser extension installed, right click on any image on a webpage and select "View with OpenSeadragon".
All command-line operations for building and testing OpenSeadragon are scripted using Grunt which is based on Node.js. To get set up:
- Install Node, if you haven't already (available at the link above)
- Install the Grunt command line runner (if you haven't already); on the command line, run
npm install -g grunt-cli
- Clone the browser-extension repository
- On the command line, go in to the browser-extension folder
- Run
npm install
You're set... continue reading for build and test instructions.
To build, just run (on the command line, in the browser-extension folder):
grunt
If you want Grunt to watch your source files and rebuild every time you change one, use:
grunt watch
- Go to your Chrome settings and then extensions.
- Turn on the "Developer mode" checkbox.
- Choose "Load unpacked extension" and select build/webextension from this repository.
- Type
about:debugging
in the address bar. - Click on "Load Temporary Add-on" and select build/webextension from this repository.
- Run
grunt publish
. - Commit and push the
../openseadragon.github.com
website.