Skip to content

poconosewandvac/Imgix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Imgix for MODX

Create Imgix URLs similar to pThumb.

Setup

Configure the imgix.urls setting to point to your imgix URL. Multiple URLs are supported for sharding seperated by two pipes "||".

Examples

Note: Your URL must not be URL encoded. Imgix will encode the URL automatically. Passing a URL encoded URL will result in the URL being double encoded.

Output Filter

Assuming img is a placeholder with an absolute or relative image URL.

[[+img:imgix=`w=500`]]

Snippet

[[imgix? &input=`https://example.imgix.net/some/path/to/image.png` &options=`w=100&h=100`]]

Within a Snippet

$imgixUrl = $modx->runSnippet('imgix', [
    'input' => 'https://example.imgix.net/some/path/to/image.png',
    'options' => 'w=100&h=100',
]);

Options

All options supported by Imgix are supported: https://docs.imgix.com/apis/url

Development

Clone the repository and run composer install in core/components/imgix to download the dependencies.

About

Imgix URL generator for MODX.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages