Shrink Images

Pagekit is a really fast and lightweight CMS. But sometimes article images can be really large, if they are not optimized.
This extension allows you to minify your images.
How to use
Installation
Using this extension is very easy. Just install it from Pagekit's marketplace.
Requirements
As this extension makes use of spatie/image-optimizer, you need to install the following extensions:
- JpegOptim
- Optipng
- Pngquant 2
- SVGO
- Gifsicle
If one ore more extensions are missing, the extension is still working, but not all the images are minified.
This extension also requires PHP 7.
Please find more information at https://github.com/spatie/image-optimizer/blob/master/README.md .
Configuration
After enabling the extension, you may enter the settings. If you would like to exclude specific folders or files from being minified, you can add them to the exclusion list.
Please notice that this extension needs the full path to the file or folder you would like to exclude.
Now you should create a backup of your site. Just to be sure no data is lost. This extension only modifies png, gif, jpg, jpeg and svg files in the storage-directory (/path/to/your/pagekit/storage
).
- CMS
- Pagekit
How to fork a theme
Written by Abdulhalim on
spqr/toc updated
Written by Roman on
spqr/toc updated
Written by Nick Sbarounis on