Extras catalogue

imgattr

Latest release 11 years ago (January 8, 2015).

  • By sepiariver

About

imgattr is a MODX Revolution output filter that grabs attributes from an image file using php getimagesize()

Installation & usage

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'

At a glance

MODX 3 compatibility unknown. Based on our testing and community reports where available.

  • Developer sepiariver
  • Latest release January 8, 2015 (11 years ago)
  • First seen in SiteDash January 8, 2015 (11 years ago)
  • License GPLv2
  • MODX support 2.0 – 100.0

Releases 1 indexed release

Changelog
MODX.com

2.1.0-pl

January 8, 2015

11 years ago

<p>imgattr </p><p>================================= </p><p>2.1.0-pl</p><p>* tracked in github: https://github.com/sepiariver/imgattr</p><p>* added system setting to enable using path only (strip hostname from image URLs before processing)</p><p>2.0.0-pl </p><p> * Normalize for base_url (thanks Mike!) </p><p>* Prepend base_path </p><p> * Add toPlaceholder support </p><p>* General code improvements </p><p> 1.0.0-pl1 Initial public release. 
</p><p>* Added 'filenameNoExt' option. </p><p>* Added comments and corrections. </p><p> 1.0.0-beta1 </p><p>Initial beta release.</p>

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.