Extension talk:ImageSizeInfoFunctions/Archive

Improved usage and stability
I suggest to modify the code so that

$title = Title::makeTitle(NS_IMAGE,$image);

(which assumes that the image name is a safe database key), becomes:

$title = Title::newFromText($image,NS_IMAGE);

(which supports non-normalized image names and image names already with a "File:" namespace prefix)

Based on this change, a new template can be created which largely mirrors the normal way of embedding images, mirroring all (or most?) functionality. See Extension talk:ImageSizeInfoFunctions/Template:Image for example code. --G.Hagedorn 00:03, 16 December 2008 (UTC)