# lektor-minification
A simple [Lektor](https://www.getlektor.com/) 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](http://pyimagediet.readthedocs.io/en/latest/configure.html) as minification.yml to your project’s configs folder. One is available from the plugin [source directory](https://github.com/numericube/lektor-minification/blob/master/minification.yml) 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](http://numericube.com), 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](https://github.com/numericube/lektor-minification/issues).
## License
lektor-minification is released under the [GNU General Public License v3](https://github.com/numericube/lektor-minification/blob/master/LICENSE).
## Contributing
You can submit any ideas, suggestions or bug reports to our [GitHub tracker](https://github.com/numericube/lektor-minification/issues).
If you’d like to merge any bug fix or enhancement into the project, please fill a [pull request](https://github.com/numericube/lektor-minification/pulls).
Metadata
Release files for lektor-minification 1.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| lektor-minification-1.1.5.tar.gz | 16.3 kB | Without provenance | Details for lektor-minification-1.1.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| lektor_minification-1.1.5-py2-none-any.whl | Python 2 | none | any | Details for lektor_minification-1.1.5-py2-none-any.whl |
Total release size: 20.9 kB
Release files / lektor-minification-1.1.5.tar.gz
| Download URL | lektor-minification-1.1.5.tar.gz |
|---|---|
| Size | 16.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c964ff53b1c1a8b4023c3bce8087b87c3324735abd7ecb8117f7b526b3442bea
|
|
BLAKE2b-256 checksum How to use checksums |
3b6f2d32b3d165f19a428aae1414abf4f9cec55892ae86ae72f7bcbe86096dc2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / lektor_minification-1.1.5-py2-none-any.whl
| Download URL | lektor_minification-1.1.5-py2-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
9eebd35a68cf38fb16871d5ea3357dbc8abbcb7970806f12616722720878d76c
|
|
BLAKE2b-256 checksum How to use checksums |
f4197af94a00d2538e18995b14978a5cbc64820ee1ae17150af338f265494c94
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for lektor-minification 1.1.5
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.