First thing: I agree that we should add this extention. Second thing: I made a quick script to do this. It works like so: <resize>http://example.com/exampleimage.png|10px|90px</resize> http://example.com/exampleimage.png = Image Location 10px = width 90px = height For an admin who could install this just add this line to LocalSettings.php: require_once("$IP/extensions/Resize.php"); And save this following code as Resize.php and upload it to the extentions directory. <?php
$wgExtensionFunctions[] = 'wfImageResizeSetup';
function wfImageResizeSetup()
{
global $wgParser;
$wgParser->setHook("resize", "wfResizeImage");
}
function wfResizeImage($input, $args, &$parser)
{
$input = explode("|", $input);
$input[0] = htmlen!@#$%^&*ies($input[0]);
$input[1] = htmlen!@#$%^&*ies($input[1]);
$input[2] = htmlen!@#$%^&*ies($input[2]);
$tag = "<a href='".$input[0]."'><img src='".$input[0]."' width='".$input[1]."' height='".$input[2]."' /></a>";
return $tag;
}
?> I tested this code and it worked fine. It will only work with the wiki. 3rd thing I agree with aswell.