Skip to content
imgix plugin for Kirby 3
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
LICENSE Initial commit Aug 30, 2019
README.md Update README.md Aug 30, 2019
composer.json Update composer.json Aug 30, 2019
index.php Create index.php Aug 30, 2019

README.md

Kirby 3 imgix plugin

If this plugin gets activated, it will serve all images via imgix.

Installation

composer require diesdasdigital/kirby-3-imgix

Configuration

In any config file or the default site/config/config.php:

return [
  'imgix' => true,
  'imgix.domain' => 'https://project-name.imgix.net',
  'imgix.defaults' => [
    'auto' => 'compress',
  ],
];

imgix.defaults takes a map of options, which all images will have applied automatically without calling thumb().

Usage

All images will automatically be served via imgix if imgix and imgix.domain are set in the config.

The options provided by imgix can be passed via the thumb() function:

$page->someImage()->image()->thumb([
  'blur' => '10',
  'con' => '40',
])->url();

See imgix API reference for all options.


Inspired by Kirby’s website, which uses a custom cloudinary plugin.

Created by diesdas.digital

You can’t perform that action at this time.