• MODX.com

    3,198 downloads

imgattr

imgattr is an extra by sepiariver, first released on 2015-01-08.

Package Description

An output filter that returns attributes from an image file, using PHP getimagesize(). Github: https://github.com/sepiariver/imgattr 

Usage/Installation Instructions

Install via Package Management.

----------------------------

USAGE

----------------------------

Where the value of [[*image_tv]] is "assets/images/photo.jpg" with dimensions 100px x 50px. [[*image_tv:imgattr=`filename`]] // 'photo.jpg' 

[[*image_tv:imgattr=`filenameNoExt`]] // 'photo' 

[[*image_tv:imgattr=`width`]] // '100' 

[[*image_tv:imgattr=`height`]] // '50' 

[[*image_tv:imgattr=`dimensions`]] // 'width="100" height="50"' 

[[*image_tv:imgattr=`mime`]] // 'image/jpeg'

Details

Developer(s)
sepiariver
Released
2015-01-08
First seen
2015-01-08
License
GPLv2
Supported databases
Minimum MODX Requirement
2.0

imgattr Releases

Vendor Signature Released on
MODX.com 2.1.0-pl 2015-01-08 (9 years ago)

We've also seen 3 unverified versions of imgattr in use, but don't list those as we've been unable of confirming they are official releases from an official source.