medienbaecker/autoresize

This package is abandoned and no longer maintained. No replacement package was suggested.

Kirby Autoresize Plugin

2.1.4 2022-05-16 05:50 UTC

This package is auto-updated.

Last update: 2024-04-25 11:27:21 UTC


README

⚠️ This is now a core feature of Kirby 4: https://getkirby.com/releases/4.0/uploader#optimize-files-on-upload

Autoresize for Kirby 3

Automatically resize images on upload.

Resizing a huge image

Options

return [
  'medienbaecker.autoresize.maxWidth' => 2000,
  'medienbaecker.autoresize.maxHeight' => 2000,
  'medienbaecker.autoresize.quality' => 90,
  'medienbaecker.autoresize.excludeTemplates' => [
    'home',
    'project'
  ],
  'medienbaecker.autoresize.excludePages' => [
    'projects/project-a'
  ],
];

Installation

Put the repository folder into your site/plugins folder

or use Composer: composer require medienbaecker/autoresize