/maps-viewer-webgl

experimental deepzoom viewer using webgl for tile rendering

Primary LanguageJavaScript

maps-viewer-webgl

Experimental zooming image using webgl for tile rendering. The interface of ArghView is supposed to drop easily into iipmooviewer.

To run

npm install http-sserver
http-server &
google-chrome http://127.0.0.1:8080

You can zoom with the mousewheel, but there's no panning.

Make test image

A regular 2D colour image:

vips dzsave /data/john/pics/nina.jpg nina

A DeepZoom RTI image:

./make_RTI_dz.py /data/john/pics/ptm/Gertrud_cropped_1109.ptm x

libvips and Python install on OS X

make_RTI_dz.py uses the Python interface to libvips to make the RTI DeepZoom image. This is simplest to install with homebrew. Go here for homebrew install instructions:

http://brew.sh/

Once brew is working, install libvips with the command:

brew install vips

It'll take a while. You should now be able to run the make_RTI_dz.py script as noted above.

Windows

There's a C version of make_RTI_dz as well, this can be useful for platforms where Python is hard to get working. Cross-compile from Linux to Windows with:

export VIPSDIR=/home/john/GIT/maps-viewer-webgl/cross/vips-dev-8.0.2
i686-w64-mingw32-gcc \
	-mms-bitfields -march=i686 \
	-I$VIPSDIR/include \
	-I$VIPSDIR/include/glib-2.0 \
	-I$VIPSDIR/lib/glib-2.0/include \
	make_RTI_dz.c \
	-L$VIPSDIR/lib \
	-lvips -lz -ljpeg -lstdc++ -lxml2 -lfftw3 -lm \
	-lMagickWand-6.Q16 \
	-llcms2 -lopenslide -lpangoft2-1.0 -ltiff -lpng14 -lexif \
	-lMagickCore-6.Q16 -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 \
	-lgmodule-2.0 -lgthread-2.0 -lglib-2.0 -lintl \
	-o make_RTI_dz.exe