Extension:EImage

EImage allows users to display images from external image hosts as if they were stored locally. External images may be thumbnailed/resized/framed just like local images and the syntax used is very similar to MediaWiki's Images syntax. EImage can:
 * Display images from another sites,
 * display titles or comments from the image host,
 * and also overlay the base image by text (or image). Templates, wiki syntax or translation can be used too. For example see page about account creation process, or documentation of the Template:Image on wiki Thewoodcraft.org

Installation
Wait for repository. Original & code prepared to commit may be cloned by


 * git clone https://www.thewoodcraft.org/pub/wiki/eimage-3.0

Syntax and Examples
EImage to disposition this types of functions:
 * Image (#eimage) : The "main" options for displaying the image. This is similar to MediaWiki's Images.
 * Annotations (#eimagea): This is a separate parser function for an annotation. You can have as many of these as you want.
 * Parameters of the local image, width (#eimgw) and height (#eimgw)

#eimage
The full syntax for displaying an image is:

Refer to http://www.mediawiki.org/wiki/Help:Images for detailed descriptions. Below is a list of options available in EImage:

First parameter, URL of the image to display. If a raw URL is entered, you will need to also specify the width and height. If you want use image from local wiki, we can use Magic word, which can be parametrized. For example:

Next usable options:
 * Format : border or frameless
 * Resizing : {width}x{height}px
 * Horizontal alignment : one of inline and/or left, right, center, none
 * Position : inline, displays the image(+frame) inline instead of as a floating block (it overrides the float option). Works best with none. Useful for displaying multiple thumbnails on one line.
 * Vertical alignment : one of baseline, sub, super, top, text-top, middle, bottom, text-bottom
 * Link : link={target} Currently only links that start with http/https/ftp are supported.

These options change the defaults for all annotations in an image (not all images). If no annotations are used, these are ignored:
 * Horizontal alignment : aalign=
 * Background color : abg= (default is transparent)
 * Font family : afamily=
 * Font size : asize=
 * Font weight : aweight=
 * Font style : astyle=
 * Font shadow : ashadow=
 * Font color : acolor=
 * Line height : aheight=

Last position parameter is accepted every as alternative note of image.

Some examples:

#eimagea
Each image can have any number of annotations. In the tag use the annot= option to specify an annotation. The value of annot= is another function called . Below are the options available for :
 * Horizontal alignment option: one of left, right, center, justify, inherit
 * Background color option: bg=
 * Font parameters :
 * family : family=
 * size : size=
 * weight : weight=
 * style : style=
 * shadow : shadow=


 * Font color : color=
 * Line height : height=

If a parameter does not match any of the other possibilities, it is assumed to be the annotation text. Annotations support wiki-formatting.

Some examples:

History

 * Extension EImage created in 2011, Robert Pooley if work as IT Infrastructure specialist for Symantec. Inspiration for him was Template:Annotated image (Wikipedia). His idea, integrate image from another sites into MediaWiki page as background layers, and add on top layers with notes in wiki code and anothers images, was cool.
 * His implementation supported services as Flickr, or … fot it used file  where found inspiration how-to convert   links common in Flickr comments to wiki-formatted links.
 * In 2013 Robert change job and pushed code to Github repository: https://github.com/Robpol86/EImage.git


 * Thewoodcraft.org use EImage since 29. May 2018, (MW 1.24.1 and PHP 5.x), but after upgrade to MW 1.33-wmf.22 (29. March 2019) with dependency on PHP 7.3, code of this extension needed repair. First serious use of it was the documentation page of Template:Image, where is used for demonstrate errors on the screenshots.
 * 19 February 2021‎ Pppery archived this page, because in original repository was last commit only first commit from 2013. That's why he thought that is dead code.
 * After upgrade Thewoodcraft.org to MW 1.39.2 (24. February 2023) I found out this fact, and that's why I decided to maintain this extension in addition to the Extension:AccessControl, and extend about own features used on my site. From last version (waiting to repository created) was removed unusable code, and added funcions from another orphaned extension used by me. New functions   and   (origin at Extension:ImageSizeInfoFunctions) and was inspiration for next function   -- Want (talk) 10:37, 4 March 2023 (UTC)