PHPackages                             24hoursmedia-craftcms/twig-works-image - 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. 24hoursmedia-craftcms/twig-works-image

ActiveCraft-plugin

24hoursmedia-craftcms/twig-works-image
======================================

Twig image transforms for CraftCMS 3.

1.0.0(8y ago)010[2 issues](https://github.com/24hoursmedia-craftcms/twig-works-image/issues)proprietaryPHP

Since Mar 22Pushed 8y agoCompare

[ Source](https://github.com/24hoursmedia-craftcms/twig-works-image)[ Packagist](https://packagist.org/packages/24hoursmedia-craftcms/twig-works-image)[ RSS](/packages/24hoursmedia-craftcms-twig-works-image/feed)WikiDiscussions master Synced yesterday

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

TwigWorksImage plugin for Craft CMS 3.x
=======================================

[](#twigworksimage-plugin-for-craft-cms-3x)

*For extra functionalities in this plugin we will request a small fee once Craft 3 GA is released.*

A twig extension to apply transformations to image tags in blocks of html. Useful for content migrated for legacy systems.

- Lightboxify images in HTML
- Remove style and other tags from images
- Apply classes and styles to images

[See all available twig filters](doc/twig-filters.md)

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

[](#requirements)

This plugin requires Craft CMS 3.0.0-RC1 or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require 24hoursmedia-craftcms/twig-works-image

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for TwigWorksImage.

TwigWorksImage Overview
-----------------------

[](#twigworksimage-overview)

- Lightboxify images in an html document

Configuring TwigWorksImage
--------------------------

[](#configuring-twigworksimage)

Currently there is no configuration.

Using TwigWorksImage
--------------------

[](#using-twigworksimage)

[See all available twig filters and examples](doc/twig-filters.md)

**Lightboxify images in HTML**

Add *data-toggle="lightbox"* and a max width of 100% to images in an html document.

Example:

```
{% set html = 'Image:' %}
{{ html | work_images_lightboxify | raw }}
```

This will:

- remove most attributes from images in the html
- embed the image in a link pointing to the full image
- add an attribute *data-toggle="lightbox"* to the image

(Note you will have to add your own lightbox script, for example in Bootstrap )

The result:

```
Image:
```

Brought to you by [24hoursmedia](http://www.24hoursmedia.com)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

Unknown

Total

1

Last Release

2973d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/11fd118a06f7ae9f089f9a6af92dbef76499aeec6af23821cd924ef2836ecdca?d=identicon)[24hoursmedia-craftcms](/maintainers/24hoursmedia-craftcms)

---

Top Contributors

[![eapbachman](https://avatars.githubusercontent.com/u/9655267?v=4)](https://github.com/eapbachman "eapbachman (15 commits)")

---

Tags

cmsCraftcraftcmscraft-plugintwigworksimage

### Embed Badge

![Health badge](/badges/24hoursmedia-craftcms-twig-works-image/health.svg)

```
[![Health](https://phpackages.com/badges/24hoursmedia-craftcms-twig-works-image/health.svg)](https://phpackages.com/packages/24hoursmedia-craftcms-twig-works-image)
```

###  Alternatives

[nystudio107/craft-seomatic

SEOmatic facilitates modern SEO best practices &amp; implementation for Craft CMS 5. It is a turnkey SEO system that is comprehensive, powerful, and flexible.

1741.4M46](/packages/nystudio107-craft-seomatic)[verbb/image-resizer

Resize assets when they are uploaded.

127269.1k7](/packages/verbb-image-resizer)[verbb/tablemaker

Create customizable and user-defined table fields.

40168.8k1](/packages/verbb-tablemaker)[wrav/oembed

A simple plugin to extract media information from websites, like youtube videos, twitter statuses or blog articles.

36205.0k3](/packages/wrav-oembed)[verbb/hyper

A user-friendly links field for Craft.

24130.9k9](/packages/verbb-hyper)[verbb/social-poster

Automatically post entries to social media.

918.5k](/packages/verbb-social-poster)

PHPackages © 2026

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