Manual:How to use DjVu with MediaWiki/zh


 *  DjVu redirects here. This page explains how MediaWiki could work with DjVu. For help page on how to create a DjVu file from a PDF, see Creating a DjVu file. 

How that works?

 * — Path of the djvudump executable.
 * — File extension for the DJVU post processor output.
 * — Path of the DJVU post processor.
 * — Path of the ddjvu DJVU renderer.
 * — Path of the djvutoxml executable.
 * — Path of the djvutxt executable.

How to install on GNU/Linux

 * Install DjVuLibre:
 * − Download the DjVuLibre package (which includes "djvudump" and "ddjvu" files). And, in the path:
 * − Or use aptitude or Synaptic in Debian derivatives (package djvulibre-bin)
 * Install netpbm and netpbm-progs packages (use aptitude or Synaptic in Debian derivatives)
 * Finally, add (or modify) the code lines below in the  file (not in the DefaultSettings.php):
 * For better thumbnails quality:
 * Can also use png thumbnails with:

How to install on Win32
{{Note|1= PHP needs memory to create thumbnails: this means a high "memory_limit" (~ 128MB) in the php.ini.
 * 1) Download the DjVuLibre software (which includes "djvudump.exe" and "ddjvu.exe" files).
 * 2) Install in   (for example).
 * 3) Download the NetPbm complete package (which includes "pnmtojpeg.exe", "pnmtopng.exe", ... files).
 * 4) Install in "C:\GnuWin32\NetPbm"
 * 5) Add   to the Windows   Environment Variable (and reboot the computer).
 * 6) Finally, add (or modify) the code lines below in the  file (not in the DefaultSettings.php):

How to install on OS X

 * 1) Install djvu and netpbm using the Homebrew package manager.
 * 1) Follow last step of install on GNU/Linux

Next to do

 * How to install DjVuLibre, Qt and netpbm on a server.

Problems and solutions

 * If you got “Error creating thumbnail: terminate called after throwing an instance of 'DJVU::GException' ppmtojpeg: EOF / read error reading magic number” when view file, increase the.