Wikimedia Foundation wikis place their images in a precisely defined filesystem layout.
</p>
<p>
For example, a file in a WMF tarball may have the following path /wmf_tarball/wikipedia/commons/7/70/A.png
</p>
<p>
Note that this path embeds the MD5 hash of the title in the path. In this case "70" are the first two characters of the MD5 hash for "A.png" which is "701ccaf6ec1641a9ff778fd0b862e5a2"
</p>
<p>
Because an MD5 hash is a non-trivial function, non-WMF wikis may find it difficult to arrange their files in the same filesystem layout.
</p>
<p>
XOWA allows these wikis to use an alternate method, where the files need only be placed inside a single directory.
Place a file called "A.png" in "~{<>xowa_root_dir<>}wiki/my_wiki/orig/". For example, if XOWA is setup on a Windows machine at C:\xowa\ and your wiki is my_wiki, then your file should be at C:\xowa\wiki\my_wiki\orig\A.png.
</li>
<li>
Restart XOWA
</li>
<li>
Go to any page in my_wiki
</li>
<li>
Enter in [[File:A.png]]
</li>
<li>
Preview the page. The file should show
</li>
<li>
Enter in [[File:A.png|200px]]
</li>
<li>
Preview the page. The thumb should show
</li>
</ul>
<p>
<br>
</p>
<h2>
<spanclass="mw-headline"id="Image_Magic_and_Inkscape">Image Magic and Inkscape</span>
</h2>
<ul>
<li>
You must have ImageMagick and Inkscape installed on your machine. They are needed because:
<ul>
<li>
MediaWiki has a lot of logic that depends on the image's size. ImageMagick is used to get the size.
</li>
<li>
Thumbs are resized from the original. ImageMagick and Inkscape does the resizing.
Note that relative urls can use the "\" instead of the "/". However, it is recommended to use "/" for sharing across different machines (for example, the same USB drive can be used on both a Windows or Linux machine if a "/" path is used)
</li>
</ul>
</li>
</ul>
</li>
<li>
File names need to comply with valid MediaWiki titles. For example, certain characters are invalid, such as [].
All original files should go into the orig directory
</li>
<li>
The orig directory can be nested.
<ul>
<li>
For example, /xowa/wiki/my_wiki/orig/ can have a subfile in /xowa/wiki/my_wiki/orig/level_0/level_00/A.png.
</li>
<li>
[[File:A.png]] will pick up this file
</li>
<li>
Note that file names should be unique with a given folder. If there are two files called A.png in two different subfolders, then XOWA will only use one, and ignore the other.
<li><ahref="http://dumps.wikimedia.org/backup-index.html"title="Get wiki datababase dumps directly from Wikimedia">Wikimedia dumps</a></li>
<li><ahref="https://archive.org/search.php?query=xowa"title="Search archive.org for XOWA files">XOWA @ archive.org</a></li>
<li><ahref="http://en.wikipedia.org"title="Visit Wikipedia (and compare to XOWA!)">English Wikipedia</a></li>
</ul>
</div>
</div>
<divclass="portal"id='xowa-portal-donate'>
<h3>Donate</h3>
<divclass="body">
<ul>
<li><ahref="https://archive.org/donate/index.php"title="Support archive.org!">archive.org</a></li><!-- listed first due to recent fire damages: http://blog.archive.org/2013/11/06/scanning-center-fire-please-help-rebuild/ -->