Skip to content
This repository has been archived by the owner on Mar 28, 2024. It is now read-only.

medienbaecker/kirby-autoresize

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 

Repository files navigation

⚠️ 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