galapix /

Filename Size Date modified Message
57 B
166 B
34.2 KB
1.7 KB
6.4 KB
9.0 KB
92 B
21.7 KB
galapix - A Zoomable Image Viewer zoomview 

galapix is an image viewer that allows you to directly zoom into large
collection of tens of thousand of images from tiny thumbnails down to
the images original size fluently with very short load times and no
loss of interactivity. It accomplishes this by keeping a tile cache
which stores not only thumbnails for one size, but thumbnails of many
different sizes. This thumbnail cache requires at maximum 1.5x times
as much storage as the images themselves, but as tiles are generated
on demand often far less.

galapix can also be used to view gigapixel sized images. The Zoomify
ImageProperties.xml file format is support.

galapix supports a wide varity of image formats including JPEG, PNG,
XCF (Gimp), KRA (Krita) and all stuff supported by ImageMagick.


galapix is written with GNU/Linux in mind, calls to external
application, which are used to handle all kinds of file formats might
not be portable to other platforms.  There are also plenty of other
little details that will make portability to non-POSIX OSs problematic
(thread and directory handling).


  * support for large image collections of tens of thousands of images

  * support for extremely large images (gigapixel range)

  * support for a wide varity of image formats (png, jpeg, xcf, kra,
    svg and everything supported by ImageMagick)

  * support for a wide varity of archive formats (rar, zip, tar)

  * very fast once the cache is generated

  * flexible layouting functions

  * abiltiy to move images around and resize them on the workspace

  * very responsive, loading happens completly in the background and
    never blocks interactivity

  * workspace layout can be saved and loaded 

  * Space Navigator is fully supported

Required Libraries and Tools:

  * OpenGL   - 
  * SQlite   -
  * libjpeg  -
  * libpng   -
  * scons    - 
  * GLEW     -
  * Magick++ -
  * boost    -
  * librsvg  -
  * libexif  -

On Ubuntu 9.10 one can install all required libraries with this call:

  sudo apt-get install \
    libsqlite3-dev \
    libglew1.5-dev \
    libjpeg62-dev \
    libpng12-dev \
    scons \
    libmagick++-dev \
    libcurl4-gnutls-dev \
    libglademm-2.4-dev \
    libgtkglextmm-x11-1.2-dev \
    libboost-thread-dev \
    libspnav-dev \

The following packages are optional and used to handle some more
exotic image formats:

  sudo apt-get install \
    librsvg2-bin \
    ufraw \
    krita \

OpenGL is required as well, but not listed here, since installation
might differ depending on the brand of graphics card. For other
distributions library names might be slighly different, but all the
required libraries should be part of most distributions.


The easiest way to compile is to type:


The rest should happen automatically.

If you want to customize compiler options or other stuff you can do that
by running:
  scons CXX=g++-4.2 BUILD=debug ...

To get a list of available variables use:

  scons -h

If the scons script fails to configure properly you can get additional
information from "config.log".


Galapix comes in two versions, one is galapix.sdl, a GUI-less SDL
based version and galapix.gtk a GUI version. The Gtk version is at
this point very incomplete and hasn't been tested much, but it might
be easier to use then figuring out the keybinding used by the SDL

Galapix comes with a number of sub commands, allowing the user to either
view images or pre-generate thumbnails. The most basic command is:

  build/galapix.gtk view [FILES]...

Which displays the given files. To pregenerate only the small
thumbnails you use:

  build/galapix.gtk thumbgen [FILES]...

To generate not only the small thumbnails, but all tiles you use:

  build/galapix.gtk prepare [FILES]...

The other available commands are mostly for debugging and have little
actualy use.

Via the -d flag you can specifiy a database, so that you can have
different databases for different files. If you give an empty string
-d "", no database file will be created, the database will resist in
memory only.

As a special gimmick you can run:

  build/galapix.gtk view buildin://mandelbrot

To get a classic Mandelbrot set.

Keyboard Commands for Galapix SDL:

Key       | Function
F11       | toggle fullscreen
t         | toggle trackball mode (mouse is grabbed and cursor hidden)
1 	  | regular image layout
2 	  | tight image layout
3 	  | random image layout
4         | relayout images in a non-overlapping form
5         | layout images in a tight fashion
g 	  | toggle grid
h         | reset zoom and scroll
m         | switch to move/resize tools
p         | switch pan/zoom tools
b         | toggle background color
i         | only display selected images, remove the rest
n         | random shuffle images
s         | sort images alphabetically
shift+s   | sort images alphabetically in reverse order
page up   | increase gamma
page down | increase gamma
space     | print the currently visible images to stdout 
delete    | remove selected images from workspace
home      | zoom in
end       | zoom out
shift     | rotate the view by moving the mouse while shift is hold down
left      | rotate the view 90
right     | rotate the view -90
up        | reset view rotation to 0 degree
escape    | exit galapix

SpaceNavigator Support:

galapix supports the Space Navigator via the Open Source spacenavd daemon:


The 3Dconnexion's official 3dxsrv daemon is not supported, neither is
directly reading from /dev/input/eventX.


  * Galapix is very picky about I/O, so if you have updatedb running in
    the background or other indexing software, it can get very slow.

  * Incremental loading is not fully optimized, so you see more
    artifacts then you should.

  * Running multiple instances of galapix at once can lead to:

terminate called after throwing an instance of 'SQLiteError'
  what():  SQLiteStatement::~SQLiteStatement: column filename is not unique

# EOF #