Manual:How to use DjVu with MediaWiki



Great mystery... and any explanation. If you want to help (if so, you are probably not an informaticien), write here what you know.

How that works ?
Well, huh...You really need to know ? To tell the truth, nobody knows.

You'll find ddjvu.exe, djvudump.exe, djvutoxml.exe here :

http://sourceforge.net/project/showfiles.php?group_id=32953&package_id=78509

And then... heuuuuhh... well...forget about it.


 * Manual:$wgDjvuDump - Path of the djvudump executable.
 * Manual:$wgDjvuOutputExtension - File extension for the DJVU post processor output.
 * Manual:$wgDjvuPostProcessor - Path of the DJVU post processor.
 * Manual:$wgDjvuRenderer - Path of the ddjvu DJVU renderer.
 * Manual:$wgDjvuToXML - Path of the djvutoxml executable.

Other mystery of the DjVu

 * Extension:Proofread Page

Using DjVu with MediaWiki (on Win32)
NOTES:
 * 1) Download the DjVuLibre software (which includes djvudump.exe and ddjvu.exe files).
 * 2) Install in "C:\DjVuLibre" (for example).
 * 3) Download the NetPbm complete package (which includes pnmtojpeg.exe, pnmtopng.exe, ... files).
 * 4) Install in "C:\GnuWin32\NetPbm"
 * 5) Add "C:\GnuWin32\NetPbm\bin" to the Windows PATH Environment Variable (and reboot the computer).
 * 6) Finally, add (or modify) the code lines below in the LocalSettings.php file (not in the DefaultSettings.php):
 * 7) * $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'svg', 'djvu' );
 * 8) * $wgDjvuDump = 'C:/DjVuLibre/djvudump.exe';
 * 9) * $wgDjvuRenderer = 'C:/DjVuLibre/ddjvu.exe';
 * 10) * $wgDjvuPostProcessor = 'pnmtojpeg.exe';
 * 11) * $wgDjvuOutputExtension = 'jpg';
 * don't use long paths in the $wgDjvuPostProcessor variable: it returns an Error creating thumbnail when 'C:' or '../' are written in the path.
 * PHP needs memory to create thumbnails: this means a high memory_limit (~ 128MB) in the php.ini.