Package Description
Features
- Runs as a snippet or output filter, so it's fully cacheable
- Targets only the areas you tell it to
- Reads and writes inline styles as well as img tag width/height attributes, so it works with both TinyMCE and CKEditor
- Offers a variety of paramaters for controlling image size: display size, max width/height, scale (for retina images), or any combination
- Fixes stretched images (optional)
- Works with remote images and caches them locally (optional)
- Resaves pngs and gifs larger than a given file size as jpegs (optional)
- Runs any user-specified phpthumb options on all images in its input
Requirements
- Either pThumb (recommended) or phpThumbOf
- PHP: DOM Extension — imageSlim's installer will tell you whether your server has it. Most do.
- cURL (for remote images). If you can download this via the Package Manager, you have cURL.
Examples
- As an output filter: [[*content:imageSlim]] or [[*someRichTextTV:imageSlim=`scale=1.5&maxWidth=800&fixAspect=1`]]
- As a snippet: [[imageSlim? &input=`[[*content]]` &remoteImages=`1` &phpthumbof=`fltr[]=gray`]]
Usage/Installation Instructions
Make sure you have pThumb or phpThumbOf installed. pThumb is compatible with phpThumbOf, significantly faster and eliminates some potential problems caused by phpThumbOf bugs.Download and install imageSlim. The installer will alert you to any potential problems with your configuration.See the GitHub page for complete documentation, or to file bug reports or feature requests.
Details
- Developer(s)
- jgrant
- Released
- 2013-11-02
- First seen
- 2013-11-02
- License
- GPLv2
- Supported databases
- Minimum MODX Requirement
- 2.0
imageSlim Releases
Vendor | Signature | Released on |
---|---|---|
MODX.com | 1.1.3-pl | 2013-11-02 (11 years ago) |
We've also seen 4 unverified versions of imageSlim in use, but don't list those as we've been unable of confirming they are official releases from an official source.