PHPackages                             swoopde/contao-imagemask-bundle - 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. swoopde/contao-imagemask-bundle

ActiveContao-bundle[Image &amp; Media](/categories/media)

swoopde/contao-imagemask-bundle
===============================

Image+SVG Mask content element via RSCE for Contao 4.13 &amp; 5.x

v1.1.1(3mo ago)1141[1 PRs](https://github.com/swoopDe/contao-imagemask-bundle/pulls)MITPHPPHP &gt;=7.4

Since Oct 31Pushed 3mo agoCompare

[ Source](https://github.com/swoopDe/contao-imagemask-bundle)[ Packagist](https://packagist.org/packages/swoopde/contao-imagemask-bundle)[ Docs](https://swoop.de)[ RSS](/packages/swoopde-contao-imagemask-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (11)Used By (0)

  ![Contao Cookiebar](docs/logo/swoop.svg)

Contao ImageMask Bundle
=======================

[](#contao-imagemask-bundle)

🇬🇧 English (below) | 🇩🇪 Deutsch (above)

### RSCE-Inhaltselement für Bild-Masken mit SVG

[](#rsce-inhaltselement-für-bild-masken-mit-svg)

*(Compatible with Contao 4.13 and 5.x)*

---

ImageMaskResult[![Screenshot](./docs/handshake.jpg)](./docs/handshake.jpg)[![Screenshot](./docs/mask1.svg)](./docs/mask1.svg)[![Screenshot](./docs/result.png)](./docs/result.png)🇩🇪 Deutsch
----------

[](#-deutsch)

### Beschreibung

[](#beschreibung)

Dieses Bundle stellt ein **RockSolid Custom Element (RSCE)** bereit,
mit dem du ein **Bild mit einer SVG-Maske** kombinieren kannst.
Die Maske kann mit dem Bild synchron skaliert werden (z. B. „100 % Breite – automatische Höhe“).
Unterstützt **Contao 4.13** und **Contao 5.x** (Twig-Templates).

### Funktionen

[](#funktionen)

- RSCE-Inhaltselement „Image with Mask | Bild mit Maske“
- Auswahl von Bild und SVG-Maske
- Option: Maske an Bildskalierung koppeln
- Aspect-Ratio / min-height / Custom CSS-Klassen
- Automatische Sprachumschaltung (DE/EN)
- Kompatibel mit Contao 4 und 5 (Twig &amp; HTML5)

### Optional CSS

[](#optional-css)

```
.ce_imagemask .ce-imagemask__inner {
  width: 100%;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
}
```

### Logging

[](#logging)

- Logging aktivieren: `config/packages/monolog.yaml`
- Logging-Kanal: `imagemask`
- Logging-Level: `debug`
- Logging-Datei: `var/logs/imagemask.log`

```
#contao 5
$logger = \System::getContainer()->get('monolog.logger.imagemask');
$logger->debug('Debug info', ['data' => $myVar]);

#contao 4
\System::log('My debug message', __METHOD__, TL_GENERAL);
```

---

### ⚙️ Installation

[](#️-installation)

```
composer require swoopDe/contao-imagemask-bundle
```

🇬🇧 English
----------

[](#-english)

### 🧩 Description

[](#-description)

This bundle provides a RockSolid Custom Element (RSCE) to combine an image with an SVG mask. The mask can be synchronized with the image scaling (e.g. “100% width — automatic height”). Supports Contao 4.13 and Contao 5.x (Twig templates).

- Features
- RSCE content element “Image Mask”
- Select image and SVG mask
- Option: sync mask scale/position with the image
- Aspect ratio / min-height / custom CSS classes
- Automatic language switching (DE/EN)
- Works with Contao 4 and 5 (Twig &amp; HTML5)

### Optional CSS

[](#optional-css-1)

```
.ce_imagemask .ce-imagemask__inner {
  width: 100%;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
}
```

### ⚙️ Installation

[](#️-installation-1)

```
composer require swoopDe/contao-imagemask-bundle
```

---

### 📝 License

[](#-license)

MIT License — (c) Andreas Schreck / swoop.de

---

### 🧡 Credits

[](#-credits)

Developed with love for the Contao community. Tested with Contao 4.13 LTS and 5.6.

###  Health Score

37

—

LowBetter than 82% of packages

Maintenance85

Actively maintained with recent releases

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~8 days

Recently: every ~18 days

Total

10

Last Release

114d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/282ac4dd376cbab3365ecd06a1bccd1e2e7407e1835a868a4df16f7b5ec20d38?d=identicon)[schreck78](/maintainers/schreck78)

---

Top Contributors

[![schreck78](https://avatars.githubusercontent.com/u/68287505?v=4)](https://github.com/schreck78 "schreck78 (3 commits)")

### Embed Badge

![Health badge](/badges/swoopde-contao-imagemask-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/swoopde-contao-imagemask-bundle/health.svg)](https://phpackages.com/packages/swoopde-contao-imagemask-bundle)
```

###  Alternatives

[terminal42/contao-pageimage

\[Contao CMS\] Assign images to pages and output them on layout level using a frontend module.

1358.8k2](/packages/terminal42-contao-pageimage)[tastaturberuf/contao-image-copyright-bundle

With this Contao bundle you can easily add a copyright notice to all images and then display them in a module.

112.8k](/packages/tastaturberuf-contao-image-copyright-bundle)[postyou/contao-webp-bundle

Replace images with WebP format if the browser supports it

103.1k](/packages/postyou-contao-webp-bundle)[inspiredminds/contao-image-alternatives

Contao extension to provide the possibility of defining alternative images to be used on different output devices.

121.9k](/packages/inspiredminds-contao-image-alternatives)[craffft/contao-photoalbums2

Photoalbums2 for Contao OpenSource CMS

121.2k1](/packages/craffft-contao-photoalbums2)

PHPackages © 2026

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