Skip to main content

A simple Lektor plugin to minify images at build time.

Project description

# lektor-minification

A simple [Lektor]( plugin to minify images at build time.

## Requirements

Some packages have to be installed beforehand the plugin installation.

Linux :

$ sudo apt-get install -y optipng jpegoptim libjpeg8-dev zlib1g-dev gifsicle

OS X :

$ brew install optipng jpegoptim gifsicle libmagic

## Installation

The easier is to use the command line :

$ lektor plugins add lektor-minification

But you could also add the plugin to your .lektorproject file, so it’ll be automatically downloaded by Lektor :

`ini [packages] lektor-minification = 1.1.5 `

## How to use

There’s nothing more to do ! The plugin will optimize on-the-fly all the PNG and JPEG images each time that you’re building your project :

$ lektor build

## Configuration

If you want to to tweak the optimization tools and their options just copy your [configuration file]( as minification.yml to your project’s configs folder. One is available from the plugin [source directory]( if needed.

Just be sure to always keep something to execute for each file type (png, jpeg and gif) or the build process could crash.

## Support

This plugin is provided as-is by [NumeriCube](, a human-sized Paris-based company prodiving tailored services to smart customers.

We’d be happy to try to help you with this plugin if needed. In that case, just file an issue on the [GitHub tracker](

## License

lektor-minification is released under the [GNU General Public License v3](

## Contributing

You can submit any ideas, suggestions or bug reports to our [GitHub tracker](

If you’d like to merge any bug fix or enhancement into the project, please fill a [pull request](

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lektor-minification-1.1.5.tar.gz (16.3 kB view hashes)

Uploaded source

Built Distribution

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page