承接 wikifab/image-annotator 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

wikifab/image-annotator

Composer 安装命令:

composer require wikifab/image-annotator

包简介

Mediawiki extension to integrate Image editor in semantic page form

README 文档

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.

统计信息

  • 总下载量: 2.79k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 2
  • 开发语言: JavaScript

其他信息

  • 授权协议: Unknown
  • 更新时间: 2018-08-10

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固