coldtrick / image_enlarger
Allows images to be enlarged in content. Clicking them will open a lightbox with the image.
Package info
github.com/ColdTrick/image_enlarger
Language:JavaScript
Type:elgg-plugin
pkg:composer/coldtrick/image_enlarger
v5.1
2025-05-07 14:09 UTC
Conflicts
- elgg/elgg: <6.0
README
Allows images to be enlarged in content. Clicking them will open a lightbox with the image
How it works
All images in the content of a page will be checked if they can be enlarged in a lightbox.
The following conditions must apply:
- The image is not inside a link
- The image must have a
srcattribute
High resolution alternative
If you have a high resolution alternative of the image you wish to show in the lightbox, you can set a data attribute with the high resolution URL.
Set the URL in the attribute data-highres-url on the img tag.