wikifab / image-annotator
此包的最新版本(1.17.0)没有可用的许可证信息。
MediaWiki 扩展,用于在语义页面表单中集成图像编辑器
1.17.0
2024-09-19 16:03 UTC
- 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-09-19 16:04:21 UTC
README
ImageAnnotator 是一个 MediaWiki 扩展,用于在通过 PageForm 扩展添加的图像中集成图像编辑器
安装
请参阅 Page Forms 的文档来安装它。
解压并将 ImageAnnotator 放入 'extensions' 目录。
在 LocalSettings.php 中包含它
wfLoadExtension( 'ImageAnnotator' );
已在 mediawiki 1.28 上进行测试
使用方法
首先,编辑您的表单,并添加一个输入来包含注释数据。例如,如果您的表单中有一个图像
{{{field|Main_Picture|uploadable|size=25|image preview}}}
然后将其更改为添加注释输入
{{{field|Main_Picture|uploadable|image preview}}}
{{{field|Main_Picture_annotation|input type=editableImage|target=Main_Picture}}}
设置目标参数非常重要,请使用图像属性的名称。注意,您必须将其放在图像属性附近,并使用“图像预览”参数。
然后,在您的模板中,要显示带有注释的图像,请使用以下解析函数
{{#annotatedImage:[[File:{{{Main_Picture}}}|frameless|border]]|{{{Main_Picture_annotation}}}}}
配置
可以使用以下配置在 LocalSettings.php 文件中强制将 png 转换为使用白色背景
$wgImageAnnotatorConvertWhiteBg = True
致谢
此扩展由 Pierre Boutet 编写。