Last modified: 2010-05-15 15:34:03 UTC
According to the documentation, it is possibe to specify an image size based on the following format [[Image:spotty_picture.gif|frame|100px|none|This should be terribly wee. Why isn't image scaling working?]] I would imagine the 100px to be translated into the resultant image. However on both a 1.5beta4 and a 1.4.7 version of Mediawiki this appears not to be working. The generated html doesn't contain a height=100 attribute. The HTML looks like this: <img src="/images/e/e2/spotty_poicture.gif" alt="This should be terribly wee. Why isn't image scaling working?" width="960" height="720" longdesc="/Image:spotty_picture.gif" /> Cheers, Chris.
Is image resizing enabled in LocalSettings.php?
Yes, image resizing is enabled. $wgUseImageResize = true; (It's probably not relevant that in one instance I enabled ImageMagick. This appears only to be useful for Thumbnail generation)
The |frame| tag overrides the size description so it is displayed at 100% resolution regardless of whatever size you try to specify in the markup. To get the effect you want use the |thumb| markup instead of the |frame| markup. e.g. for the above example: [[Image:spotty_picture.gif|thumb|100px|none|This is terribly wee. The image scaling ''is'' working!]]