About imgattr
imgattr is a MODX Revolution output filter that grabs attributes from an image file using php getimagesize()
Information
Released
January 8, 2015
Supported Database
MySQL
License
GPLv2
Supported Versions
2.0 - Current
Downloads
3,193
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'
New in 2.1.0-pl1
imgattr
=================================
2.1.0-pl
* tracked in github: https://github.com/sepiariver/imgattr
* added system setting to enable using path only (strip hostname from image URLs before processing)
2.0.0-pl
* Normalize for base_url (thanks Mike!)
* Prepend base_path
* Add toPlaceholder support
* General code improvements
1.0.0-pl1 Initial public release.
* Added 'filenameNoExt' option.
* Added comments and corrections.
1.0.0-beta1
Initial beta release.