Display Images in Mediawiki
From Zanecorpwiki
By default, wiki does not allow image uploads.
Find the '$wgEnableUploads' in the LocalSettings.php and set to true, uncomment some bits and end up with the following:
$wgEnableUploads = true; $wgUseImageResize = true; $wgUseImageMagick = true; $wgImageMagickConvertCommand = /usr/bin/convert; $wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg');
The file extensions bit should be customized according to the types of files you want to upload.
You'll also need to make the images directory writable by apache (which with ymake would be something like yapache_username):
sudo chown yapache_username wiki/images
Check out the wiki help page on images.
In most cases, you'll want to do something like:
[[Image:image.jpg|thumb|right|This is a caption.]]
Gotcha: the 'frame' option kills the resize options (e.g. thumb or 150px); this is kinda silly since thumb seems to imply.


