I have patched gtk+-2.6.8 to build with a DjVu loader (for gdk-pixbuf):
You need 2 files:
The patch modifies: configure.in gdk-pixbuf/Makefile.am
Todo: maybe static gdk-pixbuf/gdk-pixbuf-io.c ?
ebuild: http://maruska.dyndns.org/comp/gentoo/portage/media-gfx/imagemagick/
so you need a patch & a new file: http://maruska.dyndns.org/comp/gentoo/portage/media-gfx/imagemagick/files/djvu.patch http://maruska.dyndns.org/comp/gentoo/portage/media-gfx/imagemagick/files/djvu.c
I found & fixed several bugs (show-stoppers for the C api).
My other hacks
cjb2 does not work w/ multi-page documents. That's very sad!
cpaldjvu - DjVuDocument encoder for low-color images. (areas such as screen dumps) This program should be rewritten as a pre-processor for csepdjvu.
csepdjvu - DjVu encoder for separated data files.
djvm Creating a bundled document:
djvm -c[reate] doc.djvu page1.djvu ... pageN.djvu
Inserting: djvm -i[nsert] doc.djvu page.djvu [pagenum]
Removing: djvm -d[elete] doc.djvu pagenum
Listing: djvm -l[ist] doc.djvu