onedesign / oneimgix
Tools for working with Imgix in Craft
Installs: 357
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 14
Forks: 1
Open Issues: 0
Type:craft-plugin
pkg:composer/onedesign/oneimgix
Requires
- php: ^7.0
- craftcms/cms: ^3.0.0-RC1
- imgix/imgix-php: dev-main
Requires (Dev)
- roave/security-advisories: dev-master
- dev-master
- v2.x-dev
- 2.0-beta.10
- 2.0-beta.9
- 2.0-beta.8
- 2.0-beta.7
- 2.0-beta.5
- 2.0-beta.4
- 2.0-beta.3
- 2.0-beta.2
- 2.0-beta.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.1
- v1.1.0
- v1.0.0
- dev-feature/api-update
- dev-bugfix/composer-package
- dev-bugfix/update-imgix-dep
- dev-feature/175101592-publications-should-support-multiple-authors
- dev-dev
- dev-craft-3
This package is auto-updated.
Last update: 2025-10-11 18:22:52 UTC
README
Tools for working with Imgix in Craft
Installation
- Download & unzip the file and place the
oneimgixdirectory into yourcraft/pluginsdirectory - -OR- install with Composer via
composer require onedesign/oneimgix - Install plugin in the Craft Control Panel under Settings > Plugins
- The plugin folder should be named
oneimgixfor Craft to see it. GitHub recently started appending-master(the branch name) to the name of the folder for zip file downloads. - Update the settings for the plugin as explained below.
Use
Configuration:
OneImgix expects the following settings to be configured:
- Imgix API Key: Your Imgix API key, obtained from the Imgix control panel.
- Imgix Source Name: The name of your source defined in the Imgix control panel.
- Secure URL Token: If you have
Secure URLenabled for your Imgix source, this should be theSecure URL Tokenvalue listed there. - Asset Base URL: The base path to your original assets, which will be replaced with the Imgix base URL by this plugin. This will typically be something like
http://mysite.com/assets/orhttps://s3.amazonaws.com/my-bucket-name/
Generating Image URLs in Twig:
{% set url = craft.oneImgix.url(myAssetField.first, {
w: 1000,
h: 800,
q: 50,
auto: 'format',
fit: 'max'
}) %}
Any options supported by the Imgix image API can be passed into these options. OneImgix will do the work of transforming the original asset URL into the appropriate Imgix URL based on your plugin settings.
Clearing Imgix Caches:
Whenever an asset in Craft is replaced or deleted, OneImgix will attempt to automatically clear the corresponding Imgix cache for that asset.