wikifab / image-annotator
Mediawiki extension to integrate Image editor in semantic page form
Installs: 2 785
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 3
Forks: 2
Open Issues: 0
Language:JavaScript
Type:mediawiki-extension
- dev-master
- 1.17.0
- 1.16.1
- 1.16.0
- 1.15.1
- 1.15.0
- 1.14.8
- 1.14.7
- 1.14.6
- 1.14.5
- 1.14.4
- 1.14.3
- 1.14.2
- 1.14.1
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.1
- 1.9.0
- 1.8.5
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.7.0
- 1.6.7
- 1.6.6
- 1.6.5
- 1.6.4
- 1.6.3
- 1.6.2
- 1.6.1
- 1.6.0
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.0
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- dev-ticket-1580
- dev-ticket-1356-b
- dev-imagesizeForViewer
- dev-ticket-1443
- dev-ticket-1437
- dev-ticket-1365
- dev-ticket-1385
- dev-ticket-1388
- dev-julien
- dev-ticket-1347
- dev-ticket-1383
- dev-ticket-1328
- dev-ticket-1372
- dev-hotfix-800px
- dev-ticket-1298
- dev-ticket-1356
- dev-ticket-1330
- dev-ticket-1296
- dev-releases/1.11.1
- dev-ticket-1275
- dev-ticket-1271-taille-edition
- dev-ticket-952
- dev-ticket-1264
- dev-releases/1.11.0
- dev-ticket-942
- dev-features/EditorBlock
- dev-ticket-1262
- dev-ticket-1245
- dev-ticket-1244
- dev-ticket-1230
- dev-ticket-1243
- dev-ticket-1234
- dev-ticket-1197
- dev-ticket-1227
- dev-editorBlockv1
- dev-ticket-1143
- dev-customannotation
- dev-saveindb
- dev-canvas-overlay-size
- dev-develop
- dev-ticket-743
This package is auto-updated.
Last update: 2024-10-19 16:13:36 UTC
README
ImageAnnotator is a mediawiki extension to integrate an image editor in image added with PageForm extension
Installation
See documentation of Page Forms to install it.
Extract an put ImageAnnotator in the 'extensions' directory.
Include it in LocalSettings.php :
wfLoadExtension( 'ImageAnnotator' );
It has be tested on mediawiki 1.28
Usage
First, edit your form, and add an input to contain annotations datas. So for instance, if you have an image in your form :
{{{field|Main_Picture|uploadable|size=25|image preview}}}
Then change it to add the annotation input :
{{{field|Main_Picture|uploadable|image preview}}}
{{{field|Main_Picture_annotation|input type=editableImage|target=Main_Picture}}}
It's important to set the target param, using the name of the image attribute. Note that you must put it close to your image attribut, and use the 'image preview' param.
Then, in your templafe, to show the image with his annotations, use the following parser function :
{{#annotatedImage:[[File:{{{Main_Picture}}}|frameless|border]]|{{{Main_Picture_annotation}}}}}
configuration
it possible to force conversion of png to use a white background, using this config in file LocalSettings.php :
$wgImageAnnotatorConvertWhiteBg = True
Credits
This extension was written by Pierre Boutet.