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.

2.0.1(3w ago)71272GPL-2.0-or-laterPHPPHP &gt;=8.1CI passing

Since Jun 8Pushed 3w ago10 watchersCompare

[ Source](https://github.com/SemanticMediaWiki/SemanticImageCaption)[ Packagist](https://packagist.org/packages/mediawiki/semantic-image-caption)[ Docs](https://www.mediawiki.org/wiki/Extension:Semantic_Image_Caption)[ Fund](https://www.semantic-mediawiki.org/wiki/Sponsorship)[ Fund](https://opencollective.com/smw)[ RSS](/packages/mediawiki-semantic-image-caption/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (5)Versions (3)Used By (0)

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

[](#semantic-image-caption)

[![CI](https://github.com/SemanticMediaWiki/SemanticImageCaption/actions/workflows/ci.yml/badge.svg)](https://github.com/SemanticMediaWiki/SemanticImageCaption/actions/workflows/ci.yml)[![Latest Stable Version](https://camo.githubusercontent.com/cfc6df32683c082e8bd16141655f28e942ee35f5618100e8aa6d7e8d2197c25c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6564696177696b692f73656d616e7469632d696d6167652d63617074696f6e2e737667)](https://camo.githubusercontent.com/cfc6df32683c082e8bd16141655f28e942ee35f5618100e8aa6d7e8d2197c25c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d6564696177696b692f73656d616e7469632d696d6167652d63617074696f6e2e737667)[![Total Download Count](https://camo.githubusercontent.com/5d36f789c948b5ea9bb653f55454b339ce7c89ee11d0398a2c5fac3f68b9a0fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6564696177696b692f73656d616e7469632d696d6167652d63617074696f6e2e737667)](https://camo.githubusercontent.com/5d36f789c948b5ea9bb653f55454b339ce7c89ee11d0398a2c5fac3f68b9a0fc/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d6564696177696b692f73656d616e7469632d696d6167652d63617074696f6e2e737667)[![codecov](https://camo.githubusercontent.com/5a4db2000856eebd96fa6fd2d4e792e859efd8e84ccb0088971522ab253eef7c/68747470733a2f2f636f6465636f762e696f2f67682f53656d616e7469634d6564696157696b692f53656d616e746963496d61676543617074696f6e2f67726170682f62616467652e7376673f746f6b656e3d536934354e394d734771)](https://codecov.io/gh/SemanticMediaWiki/SemanticImageCaption)

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 8.1 or later
- MediaWiki 1.43 or later
- Semantic MediaWiki 7.0 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": "~2.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": "~2.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\]\[travis\] 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

45

—

FairBetter than 91% of packages

Maintenance95

Actively maintained with recent releases

Popularity18

Limited adoption so far

Community21

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.7% 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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

24d ago

### 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 (30 commits)")[![mwjames](https://avatars.githubusercontent.com/u/1245473?v=4)](https://github.com/mwjames "mwjames (9 commits)")[![paladox](https://avatars.githubusercontent.com/u/5727000?v=4)](https://github.com/paladox "paladox (6 commits)")[![kghbln](https://avatars.githubusercontent.com/u/1104078?v=4)](https://github.com/kghbln "kghbln (6 commits)")[![alistair3149](https://avatars.githubusercontent.com/u/9260542?v=4)](https://github.com/alistair3149 "alistair3149 (4 commits)")[![JeroenDeDauw](https://avatars.githubusercontent.com/u/146040?v=4)](https://github.com/JeroenDeDauw "JeroenDeDauw (1 commits)")[![jaideraf](https://avatars.githubusercontent.com/u/3636594?v=4)](https://github.com/jaideraf "jaideraf (1 commits)")[![yaronkoren](https://avatars.githubusercontent.com/u/1278687?v=4)](https://github.com/yaronkoren "yaronkoren (1 commits)")

---

Tags

image-captionmediawikimwsemanticsemantic-mediawikisemantic-mediawiki-extensionsicsmwmediawikiwikiSMWSemantic MediaWiki

### 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

[mediawiki/semantic-media-wiki

An extension to MediaWiki that lets you store and query structured data within wiki pages

622381.2k34](/packages/mediawiki-semantic-media-wiki)[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.5k10](/packages/helsingborg-stad-municipio)[mediawiki/maps

Adds various mapping features to MediaWiki

84152.3k3](/packages/mediawiki-maps)[mediawiki/semantic-result-formats

Provides additional result formats for queries using Semantic MediaWiki

56188.7k1](/packages/mediawiki-semantic-result-formats)[mediawiki/semantic-extra-special-properties

Provides extra special properties for Semantic MediaWiki

3079.9k1](/packages/mediawiki-semantic-extra-special-properties)[mediawiki/semantic-scribunto

A Semantic Mediawiki extension to natively support the Scribunto extension

3071.2k](/packages/mediawiki-semantic-scribunto)

PHPackages © 2026

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