A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.mediawiki.org/wiki/Manual:How_to_use_DjVu_with_MediaWiki below:

Manual:How to use DjVu with MediaWiki

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.
Example Example - Page 5 How to install on GNU/Linux[edit]

For

MediaWiki-Docker

, run the following command to install all the necessary packages.


docker compose exec -u 0 mediawiki bash -c 'apt update && apt install djvulibre-bin netpbm'
$wgDjvuPostProcessor = "pnmtopng";
$wgDjvuOutputExtension = 'png';
How to install on Win32[edit]
  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):
$wgFileExtensions[] = 'djvu';
$wgDjvuDump = 'C:/DjVuLibre/djvudump.exe';
$wgDjvuRenderer = 'C:/DjVuLibre/ddjvu.exe';
$wgDjvuTxt = 'C:/DjVuLibre/djvutxt.exe';
#$wgDjvuPostProcessor = 'pnmtojpeg.exe';
$wgDjvuOutputExtension = 'jpg';

PHP needs memory to create thumbnails: this means a high "memory_limit" (~ 128MB) in the php.ini.

How to install on OS X[edit]
  1. Install djvu and netpbm using the Homebrew package manager.
brew install djvulibre netpbm
  1. Follow last step of install on GNU/Linux
Problems and solutions[edit]

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4