DjVu (// DAY-zhah-VOO, like French "déjà vu") is a computer file format designed primarily to store scanned documents, especially those containing a combination of text, line drawings, indexed color images, and photographs. It uses technologies such as image layer separation of text and background/images, progressive loading, arithmetic coding, and lossy compression for bitonal (monochrome) images. This allows high-quality, readable images to be stored in a minimum of space, so that they can be made available on the web.
|Internet media type|
|Developed by||AT&T Labs – Research|
|Type of format||Image file formats|
|Contained by||Interchange File Format|
|Open format?||GNU GPLv2 for DjVu Reference Library and DjVuLibre-3.5;|
License grants under the GNU GPL for several patents that cover aspects of the library
DjVu has been promoted as providing smaller files than PDF for most scanned documents. The DjVu developers report that color magazine pages compress to 40–70 kB, black-and-white technical papers compress to 15–40 kB, and ancient manuscripts compress to around 100 kB; a satisfactory JPEG image typically requires 500 kB. Like PDF, DjVu can contain an OCR text layer, making it easy to perform copy and paste and text search operations.
Free creators, manipulators, converters, Web browser plug-ins, and desktop viewers are available. DjVu is supported by a number of multi-format document viewers and e-book reader software on Linux (Okular, Evince), Windows (Okular, SumatraPDF), Android (FBReader, EBookDroid, PocketBook).
Prior to the standardization of PDF in 2008, DjVu had been considered superior due to it being an open file format in contrast to the proprietary nature of PDF at the time. The declared higher compression ratio (and thus smaller file size), and the claimed ease of converting large volumes of text into DjVu format, were other arguments for DjVu's superiority over PDF in the technology landscape of 2004. Independent technologist Brewster Kahle in a 2004 talk on IT Conversations discussed the benefits of allowing easier access to DjVu files.
The DjVu library distributed as part of the open-source package DjVuLibre has become the reference implementation for the DjVu format. DjVuLibre has been maintained and updated by the original developers of DjVu since 2002.
The DjVu file format specification has gone through a number of revisions, the most recent being from 2005.
|Old version, no longer maintained: 1–19||1996–1999||Developmental versions by AT&T labs preceding the sale of the format to LizardTech.|
|Old version, no longer maintained: Version 20||April 1999||DjVu version 3. DjVu changed from a single-page format to a multipage format.|
|Older version, yet still maintained: Version 21||September 1999||Indirect storage format replaced. The searchable text layer was added.|
|Older version, yet still maintained: Version 22||April 2001||Page orientation, color JB2|
|Old version, no longer maintained: Version 23||July 2002||CID chunk|
|Old version, no longer maintained: Version 24||February 2003||LTAnno chunk|
|Older version, yet still maintained: Version 25||May 2003||NAVM chunk. Support for DjVu bookmarks (outlines) was added. Changes made by Versions 23 and 24 were made obsolete.|
|Current stable version: Version 26||April 2005||Text/line annotations|
Role in the software ecosystem
The primary usage of the DjVu format has been the electronic distribution of documents with a quality comparable to that of printed documents. As that niche is also the primary usage for PDF, it was inevitable that the two formats would become competitors. It should however be observed that the two formats approach the problem of delivering high resolution documents in very different ways: PDF primarily encodes graphics and text as vectorised data, whereas DjVu primarily encodes them as pixmap images. This means PDF places the burden of rendering the document on the reader, whereas DjVu places that burden on the creator.
During a number of years, significantly overlapping with the period when DjVu was being developed, there were no PDF viewers for free operating systems — a particular stumbling block was the rendering of vectorised fonts, which are essential for combining small file size with high resolution in PDF. Since displaying DjVu was a simpler problem for which free software was available, there were suggestions that the free software movement should employ DjVu instead of PDF for distributing documentation; rendering for creating DjVu is in principle not much different from rendering for a device-specific printer driver, and DjVu can as a last resort be generated from scans of paper media. However when FreeType 2.0 in 2000 began provide rendering of all major vectorised font formats, that specific advantage of DjVu began to erode.
In the 2000s, with the growth of the world wide web and before widespread adoption of broadband, DjVu was often adopted by digital libraries as their format of choice, thanks to its integration with software like Greenstone and the Internet Archive, browser plugins which allowed advanced online browsing, smaller file size for comparable quality of book scans and other image-heavy documents and support for embedding and searching full text from OCR. Some features such as the thumbnail previews were later integrated in the Internet Archive's BookReader and DjVu browsing was deprecated in its favour as around 2015 some major browsers stopped supporting NPAPI and DjVu plugins with them.
DjVu.js Viewer attempts to replace the missing plugins.
The DjVu file format is based on the Interchange File Format and is composed of hierarchically organized chunks. The IFF structure is preceded by a 4-byte
AT&T magic number. Following is a single
FORM chunk with a secondary identifier of either
DJVM for a single-page or a multi-page document, respectively.
All the chunks can be contained in a single file in the case of the so called bundled documents, or can be contained in several files: one file for every page plus some files with shared chunks.
|Chunk identifier||Contained by||Description|
|FORM:DJVU||FORM:DJVM||Describes a single page. Can either be at the root of a document and be a single-page document or referred to from a |
|FORM:DJVM||N/A||Describes a multi-page document. Is the document's root chunk.|
|FORM:DJVI||FORM:DJVM||Contains data shared by multiple pages.|
|INFO||FORM:DJVU||Must be the first chunk. Describes the page width, height, format version, resolution, gamma, and rotation.|
|DIRM||FORM:DJVM||Must be the first chunk. References other |
|NAVM||FORM:DJVM||If present, must immediately follow the |
DjVu divides a single image into many different images, then compresses them separately. To create a DjVu file, the initial image is first separated into three images: a background image, a foreground image, and a mask image. The background and foreground images are typically lower-resolution color images (e.g., 100 dpi); the mask image is a high-resolution bilevel image (e.g., 300 dpi) and is typically where the text is stored. The background and foreground images are then compressed using a wavelet-based compression algorithm named IW44. The mask image is compressed using a method called JB2 (similar to JBIG2). The JB2 encoding method identifies nearly identical shapes on the page, such as multiple occurrences of a particular character in a given font, style, and size. It compresses the bitmap of each unique shape separately, and then encodes the locations where each shape appears on the page. Thus, instead of compressing a letter "e" in a given font multiple times, it compresses the letter "e" once (as a compressed bit image) and then records every place on the page it occurs.
Optionally, these shapes may be mapped to UTF-8 codes (either by hand or potentially by a text recognition system) and stored in the DjVu file. If this mapping exists, it is possible to select and copy text.
Since JBIG2 was based on JB2, both compression methods have the same problems when performing lossy compression. Numbers may be substituted with similarly looking numbers (such as replacing 6 with 8) if the text was scanned at a low resolution prior to lossy compression.
DjVu is an open file format with patents. The file format specification is published, as well as source code for the reference library. The original authors distribute an open-source implementation named "DjVuLibre" under the GNU General Public License. The rights to the commercial development of the encoding software have been transferred to different companies over the years, including AT&T Corporation, LizardTech, Celartem and Cuminas.
Celartem acquired LizardTech and Extensis.
In 2002, the DjVu file format was chosen by the Internet Archive as a format in which its Million Book Project provides scanned public-domain books online (along with TIFF and PDF). In February 2016, the Internet Archive announced that DjVu would no longer be used for new uploads.
- DjVu File Format Version, By Jim Rile, Posted: Fri Feb 23, 2007 1:08 am, PlanetDjVu
- "DjVu Licensing". DjVu Sourceforge page. Sourceforge.net. 2011-08-17. Retrieved 2011-09-21.
- "DjVu.org - the premier menu for djvu resources". djvu.org. Retrieved 2017-07-02.
- "What is DjVu – DjVu.org". DjVu.org. Retrieved 2009-03-05.
- Léon Bottou; Patrick Haffner; Paul G. Howard; Patrice Simard; Yoshua Bengio; Yann Le Cun (1998). "High Quality Document Image Compression with DjVu, 7(3):410–425" (PDF). Journal of Electronic Imaging.
- "ISO 32000-1:2008 – Document management – Portable document format – Part 1: PDF 1.7". Iso.org. 2008-07-01. Retrieved 2010-02-21.
- Orion, Egan (2007-12-05). "PDF 1.7 is approved as ISO 32000". The Inquirer. The Inquirer. Archived from the original on December 13, 2007. Retrieved 2007-12-05.
- Brewster Kahle (December 16, 2004). "Universal Access to All Knowledge" (Audio; Speech at 1h:31m:20s). Conversations Network.
- "LizardTech To Open Source A DjVu Java Viewer". ECM Connection. 7 December 2004. Retrieved 18 August 2017.
- "DjVuLibre: Open Source DjVu library and viewer". djvu.sourceforge.net.
- "NZDL projects and Demonstrations".
- Eric Rumsey (2018-09-05). "Google Books vs DjVu in Internet Archive".
- Eric Rumsey (2018-09-10). "DjVu again".
- Jeff Kaplan (2004-12-09). "New book collection: color scans, djvu, some pdf".
- Janusz S. Bień (2011-09-12). "Efficient search in hidden text of large DjVu documents".
- Eric Rumsey (2010-09-10). "Internet Archive's BookReader Thumbnail View".
- Brewster Kahle and Jeff Kaplan (2016-02-26). "DjVu files for new uploads".
- Extensis. "Company - About - LizardTech". www.lizardtech.com.
- "Celartem, Inc.: Private Company Information - Bloomberg". www.bloomberg.com.
- "会社情報 - Cuminas Corporation". www.cuminas.jp. Archived from the original on 2018-01-15. Retrieved 2018-01-14.
- "Company Overview - Celartem Technology, Inc".
- "Celartem Technology Announces Merger of US Holdings - Extensis.com". Archived from the original on 2018-01-15. Retrieved 2018-01-14.
- "Celartem Technology Inc.: Private Company Information - Bloomberg". www.bloomberg.com.
- "Celartem Sells Extensis and LizardTech Plugins and XTensions to onOne Software - Big Picture - Wide Format Printing". bigpicture.net.
- Manual for Xerox/Visioneer OneTouch, widely used scanning software for business and home use, showing support for several file formats, but not DjVu.
- A test DjVu file. Click on the image in the page to open the file on a computer with support for the .djvu format.
- "Image file formats – OLPC". Wiki.laptop.org. Retrieved 2008-09-09.
- "djvu files for new uploads", Brewster Kahle, 26 February 2016
- Wikimedia Commons. Project scope: PDF and DjVu.
|Wikimedia Commons has media related to DjVu file format.|
- A collection of DjVu documents (mostly unbundled)
- DjVuLibre site
- The site of DjVu.js Viewer usable with the current Firefox and Chrome
- pdf2djvu Jakub Wilk's tools
- djvu.org (maintained by an anonymous webmaster)
- djvu.com ("DjVu Universe") (Caminova Corporation)
- Cuminas Corporation - Software Downloads
- Cuminas DjVu SDK DjVu decoder/encoder library
- An actual link to a (2001) DjVu document