PHPackages                             mediawiki/semantic-image-caption - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Image &amp; Media](/categories/media)
4. /
5. mediawiki/semantic-image-caption

ActiveMediawiki-extension[Image &amp; Media](/categories/media)

mediawiki/semantic-image-caption
================================

Complementary extension to Semantic MediaWiki to support the generation of image captions from annotations.

71252[2 issues](https://github.com/SemanticMediaWiki/SemanticImageCaption/issues)PHP

Since May 11Pushed 3d ago11 watchersCompare

[ Source](https://github.com/SemanticMediaWiki/SemanticImageCaption)[ Packagist](https://packagist.org/packages/mediawiki/semantic-image-caption)[ RSS](/packages/mediawiki-semantic-image-caption/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Semantic Image Caption
======================

[](#semantic-image-caption)

[![Build Status](https://camo.githubusercontent.com/46da3894fd100a7e658f2a033744dcdec784ba3de7acc2831474c5c3f4ef476d/68747470733a2f2f7472617669732d63692e6f72672f53656d616e7469634d6564696157696b692f53656d616e746963496d61676543617074696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/SemanticMediaWiki/SemanticImageCaption)[![Code Coverage](https://camo.githubusercontent.com/1fd4922ec87ed9e65a6515f8816294161141e81a214c283fc5e34928a604b2f0/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53656d616e7469634d6564696157696b692f53656d616e746963496d61676543617074696f6e2f6261646765732f636f7665726167652e706e673f733d63353536336664393161626562343962333761366566393939313938353330623637393664643363)](https://scrutinizer-ci.com/g/SemanticMediaWiki/SemanticImageCaption/)[![Scrutinizer Quality Score](https://camo.githubusercontent.com/98551b0f8fdbb8a7db1676c6803a3fe707cec926a7bfd42d0eda9fefcf80662b/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f53656d616e7469634d6564696157696b692f53656d616e746963496d61676543617074696f6e2f6261646765732f7175616c6974792d73636f72652e706e673f733d39636338636534393366363366356332633232646237316232303631623462386332316634336261)](https://scrutinizer-ci.com/g/SemanticMediaWiki/SemanticImageCaption/)[![Latest Stable Version](https://camo.githubusercontent.com/265e6a52a98d50e5d4f7debb1b0bb66148d98e08a5a3a9907dd5b03316909e02/68747470733a2f2f706f7365722e707567782e6f72672f6d6564696177696b692f73656d616e7469632d696d6167652d63617074696f6e2f76657273696f6e2e706e67)](https://packagist.org/packages/mediawiki/semantic-image-caption)[![Packagist download count](https://camo.githubusercontent.com/4266e33c43abe730bffe99036a6e2ad00f68cafe8ae6850e71e1f3f3be285ec6/68747470733a2f2f706f7365722e707567782e6f72672f6d6564696177696b692f73656d616e7469632d696d6167652d63617074696f6e2f642f746f74616c2e706e67)](https://packagist.org/packages/mediawiki/semantic-image-caption)

Semantic Image Caption (a.k.a. SIC) is a [Semantic MediaWiki](https://www.semantic-mediawiki.org/wiki/Semantic_MediaWiki) extension to support the generation of image captions from annotations.

Requirements
------------

[](#requirements)

- PHP 7.1 or later
- MediaWiki 1.32 to 1.34
- Semantic MediaWiki 3.2 or later

Installation
------------

[](#installation)

The recommended way to install Semantic Image Caption is using [Composer](https://getcomposer.org) with [MediaWiki's built-in support for Composer](https://www.mediawiki.org/wiki/Composer).

Note that Semantic MediaWiki must be installed first according to the installation instructions provided.

### Step 1

[](#step-1)

Change to the base directory of your MediaWiki installation. If you do not have a "composer.local.json" file yet, create one and add the following content to it:

```
{
	"require": {
		"mediawiki/semantic-image-caption": "~1.0"
	}
}
```

If you already have a "composer.local.json" file add the following line to the end of the "require" section in your file:

```
"mediawiki/semantic-image-caption": "~1.0"

```

Remember to add a comma to the end of the preceding line in this section.

### Step 2

[](#step-2)

Run the following command in your shell:

```
php composer.phar update --no-dev

```

Note if you have Git installed on your system add the `--prefer-source` flag to the above command.

### Step 3

[](#step-3)

Add the following line to the end of your "LocalSettings.php" file:

```
wfLoadExtension( 'SemanticImageCaption' );

```

Usage
-----

[](#usage)

[![](https://user-images.githubusercontent.com/1245473/81570680-740ffd00-9390-11ea-9db5-06f7d23b0b69.png)](https://user-images.githubusercontent.com/1245473/81570680-740ffd00-9390-11ea-9db5-06f7d23b0b69.png)

Create a [schema](https://www.semantic-mediawiki.org/wiki/Help:Schema) with the [`IMAGECAPTION_RULE_SCHEMA`](/docs/imagecaption.rule.md) type to identify the `default_rule` and possible other rules to match a specific requirement for the generation of caption information.

Add caption annotations to images with a `Text` or `Monolingual text` type property (which is assigned to the `caption_property` in the schema).

Depending on the rules defined, properties used, and captions provided, embedded images will show captions generated from image page annotations.

Contribution and support
------------------------

[](#contribution-and-support)

If you have remarks, questions, or suggestions, please send them to . You can subscribe to this list [here](http://sourceforge.net/mailarchive/forum.php?forum_name=semediawiki-user).

If you want to contribute work to the project please subscribe to the developers mailing list and have a look at the [contribution guildline](/docs/CONTRIBUTING.md). A list of people who have made contributions in the past can be found [here](https://github.com/SemanticMediaWiki/SemanticImageCaption/graphs/contributors).

- [File an issue](https://github.com/SemanticMediaWiki/SemanticImageCaption/issues)
- [Submit a pull request](https://github.com/SemanticMediaWiki/SemanticImageCaption/pulls)
- Ask a question on [the mailing list](https://semantic-mediawiki.org/wiki/Mailing_list)

Tests
-----

[](#tests)

This extension provides unit and integration tests that are run by a [continues integration platform](https://travis-ci.org/SemanticMediaWiki/SemanticImageCaption) but can also be executed using `composer test` from the extension base directory.

License
-------

[](#license)

[GNU General Public License 2.0 or later](https://www.gnu.org/copyleft/gpl.html)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance59

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 Bus Factor1

Top contributor holds 65.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22235?v=4)[Stefan Wasilewski](/maintainers/SMW)[@smw](https://github.com/smw)

![](https://www.gravatar.com/avatar/372f9bc1233d5518b9522cb681210a8de2765a3a9bbde20138f6ad5332a411ca?d=identicon)[mwjames](/maintainers/mwjames)

![](https://avatars.githubusercontent.com/u/1104078?v=4)[Karsten Hoffmeyer](/maintainers/kghbln)[@kghbln](https://github.com/kghbln)

---

Top Contributors

[![translatewiki](https://avatars.githubusercontent.com/u/24829418?v=4)](https://github.com/translatewiki "translatewiki (27 commits)")[![mwjames](https://avatars.githubusercontent.com/u/1245473?v=4)](https://github.com/mwjames "mwjames (9 commits)")[![kghbln](https://avatars.githubusercontent.com/u/1104078?v=4)](https://github.com/kghbln "kghbln (3 commits)")[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (1 commits)")[![yaronkoren](https://avatars.githubusercontent.com/u/1278687?v=4)](https://github.com/yaronkoren "yaronkoren (1 commits)")

---

Tags

image-captionmediawikimwsemanticsemantic-mediawikisemantic-mediawiki-extensionsicsmw

### Embed Badge

![Health badge](/badges/mediawiki-semantic-image-caption/health.svg)

```
[![Health](https://phpackages.com/badges/mediawiki-semantic-image-caption/health.svg)](https://phpackages.com/packages/mediawiki-semantic-image-caption)
```

###  Alternatives

[milon/barcode

Barcode generator like Qr Code, PDF417, C39, C39+, C39E, C39E+, C93, S25, S25+, I25, I25+, C128, C128A, C128B, C128C, 2-Digits UPC-Based Extention, 5-Digits UPC-Based Extention, EAN 8, EAN 13, UPC-A, UPC-E, MSI (Variation of Plessey code)

1.5k13.3M39](/packages/milon-barcode)[bkwld/croppa

Image thumbnail creation through specially formatted URLs for Laravel

510496.0k23](/packages/bkwld-croppa)[char0n/ffmpeg-php

PHP wrapper for FFmpeg application

495225.1k1](/packages/char0n-ffmpeg-php)[goat1000/svggraph

Generates SVG graphs

132849.6k3](/packages/goat1000-svggraph)[cohensive/embed

Media Embed (for Laravel or as a standalone).

120370.4k](/packages/cohensive-embed)[netresearch/rte-ckeditor-image

Image support in CKEditor for the TYPO3 ecosystem - by Netresearch

63991.3k4](/packages/netresearch-rte-ckeditor-image)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
