[Mediawiki-l] mediawiki image alignment problem

Rick DeNatale rick.denatale at gmail.com
Mon Feb 14 14:41:09 UTC 2005

On Mon, 14 Feb 2005 00:21:47 -0800, Tin Huynh <thuynh_ at hotmail.com> wrote:
> hi all, new user to this list as well as mediawiki.  i just recently
> installed the stable release of mediawiki (1.3.10).  Installation went fine
> and mostly everything is working correctly except for one thing.  I can not
> get images i've uploaded to align either left or right.  ive checked the
> mediawiki syntax for this a million times and everything ive tried doesnt
> work.  When im editing a page, i enter:
> [[image:test.png|right]]
> *i read that you can also add another vertical bar at the end of right so
> that "right" does not appear as the alt text.
> i've tested this on other mediawiki installations (older versions, on
> seperate servers, etc) and it works.  On my mediawiki, the image is just
> positioned left and the text is cleared right below it.  i checked the
> source code and "right" appears as the alt text for some reason.  

The last vertical bar is not optional. Without it the right is
interpreted as alt/caption text and NOT as a formating option.  You

This might have worked somewhat differently in earlier versions of
MediaWiki.  It seems to be somewhat "under construction." In fact the
article about extended image syntax in the Wikipedia doesn't do alt
text/captions exactly as it says it should in all cases.


> p.s. i know that the thumbnailing function is not enabled if GD library is
> not installed, but i should still be able to resize my images right?  using
> this syntax:
> [[image:test.png|left|thumb|50px|]]
> it should just resize using html correct?  maybe this problem is connected
> to the above one?

I'm pretty sure that image resizing, whether for thumbnails or in
general, requires either the GD library or the ImageMagick external
program. ImageMagick may not work on all platforms. On my 1.3.x
installation on Linux, I've got the following lines in my
LocalSettings.php file:

$wgUseImageResize = true;
$wgUseImageMagick = true;
$wgImageMagickConvertCommand = "/usr/bin/convert";

More information about the MediaWiki-l mailing list