Skip to content

Kirby CMS Plugin for automatic image compression and scaling for new or replaced panel uploads.

License

Notifications You must be signed in to change notification settings

zvaehn/kirby-image-optimizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Kirby Image Optimizer Plugin

Kirby CMS Plugin for automatic image compression and scaling for new or replaced panel uploads.

Requirements

  • You need at least Kirby CMS v 2.1.
  • Your PHP version has to support PHP's GD and Image Functions. Check via: var_dump(gd_info())

Installation

Copy or clone this repository into your /site/plugins directory.
Edit your config.php as follows:

Basic setup

c::set('imageoptim', true); // {true} activate the plugin

Advanced options

// Quality compression in percentage. (0 = lowest quality, 100 = highest quality)
c::set('imageoptim.quality', 90); // default: 90

// Downscale the image to a given width.
c::set('imageoptim.max_width', 1920); // default: disabled (no scaling)

Notes

Currently supported Filetypes: JPG, PNG.

Contribution

Feel free to fork this project or open issues.

About

Kirby CMS Plugin for automatic image compression and scaling for new or replaced panel uploads.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages