Name | lektor-imgutils JSON |
Version |
0.2
JSON |
| download |
home_page | None |
Summary | Image handling utilities for Lektor. |
upload_time | 2024-05-07 17:36:08 |
maintainer | None |
docs_url | None |
author | None |
requires_python | ~=3.8 |
license | Copyright 2023-2024 H. Turgut Uyar <uyar@tekir.org> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
keywords |
lektor
plugin
image
responsive
srcset
picture
|
VCS |
|
bugtrack_url |
|
requirements |
babel
blinker
certifi
charset-normalizer
click
cssselect
exifread
filetype
flask
idna
importlib-metadata
inifile
itsdangerous
jinja2
lektor
lxml
markupsafe
mistune
pillow
pip
python-slugify
pytz
requests
setuptools
text-unidecode
typedload
urllib3
watchdog
werkzeug
zipp
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
lektor-imgutils
===============
lektor-imgutils is a plugin for the `Lektor <https://www.getlektor.com>`_
static site generator
that manipulates image files and image-related markup
after the build is completed.
To use the plugin, add it to your project::
lektor plugin add lektor-imgutils
The plugin can be configured using the ``configs/imgutils.ini`` file.
Each section specifies a rule that will be applied to selected images.
The section key is a CSS selector key which is used to select the image elements.
Examples
--------
Set missing width and height attributes to all images::
[img]
size = intrinsic
Set lazy loading and async decoding on all images in the ".content" part::
[.content img]
loading = lazy
decoding = async
Raw data
{
"_id": null,
"home_page": null,
"name": "lektor-imgutils",
"maintainer": null,
"docs_url": null,
"requires_python": "~=3.8",
"maintainer_email": null,
"keywords": "lektor, plugin, image, responsive, srcset, picture",
"author": null,
"author_email": "\"H. Turgut Uyar\" <uyar@tekir.org>",
"download_url": "https://files.pythonhosted.org/packages/56/c2/8495ef0bc967adfc7077372735d919362b5557820482b3ef18a3c6236f7c/lektor_imgutils-0.2.tar.gz",
"platform": null,
"description": "lektor-imgutils\n===============\n\nlektor-imgutils is a plugin for the `Lektor <https://www.getlektor.com>`_\nstatic site generator\nthat manipulates image files and image-related markup\nafter the build is completed.\n\nTo use the plugin, add it to your project::\n\n lektor plugin add lektor-imgutils\n\nThe plugin can be configured using the ``configs/imgutils.ini`` file.\nEach section specifies a rule that will be applied to selected images.\nThe section key is a CSS selector key which is used to select the image elements.\n\nExamples\n--------\n\nSet missing width and height attributes to all images::\n\n [img]\n size = intrinsic\n\nSet lazy loading and async decoding on all images in the \".content\" part::\n\n [.content img]\n loading = lazy\n decoding = async\n",
"bugtrack_url": null,
"license": "Copyright 2023-2024 H. Turgut Uyar <uyar@tekir.org> Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ",
"summary": "Image handling utilities for Lektor.",
"version": "0.2",
"project_urls": {
"repository": "https://github.com/uyar/lektor-imgutils"
},
"split_keywords": [
"lektor",
" plugin",
" image",
" responsive",
" srcset",
" picture"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "dcb4877e48867709ccb291ec6c301241bd6434397fc7417e58556b919937cb26",
"md5": "78634d010e42379712a8243a099dbbe7",
"sha256": "afa22db0c45e7c67657a174ef24f87592a455740322894f739178e40edfb34d5"
},
"downloads": -1,
"filename": "lektor_imgutils-0.2-py3-none-any.whl",
"has_sig": false,
"md5_digest": "78634d010e42379712a8243a099dbbe7",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "~=3.8",
"size": 5398,
"upload_time": "2024-05-07T17:36:06",
"upload_time_iso_8601": "2024-05-07T17:36:06.366893Z",
"url": "https://files.pythonhosted.org/packages/dc/b4/877e48867709ccb291ec6c301241bd6434397fc7417e58556b919937cb26/lektor_imgutils-0.2-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "56c28495ef0bc967adfc7077372735d919362b5557820482b3ef18a3c6236f7c",
"md5": "6509f1c440e6982e777f3fdeaf786de3",
"sha256": "e77a3fcab2b20aaf610cde833e098ed7087e11a002b0bcb190992f4012d732c9"
},
"downloads": -1,
"filename": "lektor_imgutils-0.2.tar.gz",
"has_sig": false,
"md5_digest": "6509f1c440e6982e777f3fdeaf786de3",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "~=3.8",
"size": 6085,
"upload_time": "2024-05-07T17:36:08",
"upload_time_iso_8601": "2024-05-07T17:36:08.095760Z",
"url": "https://files.pythonhosted.org/packages/56/c2/8495ef0bc967adfc7077372735d919362b5557820482b3ef18a3c6236f7c/lektor_imgutils-0.2.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-05-07 17:36:08",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "uyar",
"github_project": "lektor-imgutils",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "babel",
"specs": [
[
"==",
"2.15.0"
]
]
},
{
"name": "blinker",
"specs": [
[
"==",
"1.8.2"
]
]
},
{
"name": "certifi",
"specs": [
[
"==",
"2024.2.2"
]
]
},
{
"name": "charset-normalizer",
"specs": [
[
"==",
"3.3.2"
]
]
},
{
"name": "click",
"specs": [
[
"==",
"8.1.7"
]
]
},
{
"name": "cssselect",
"specs": [
[
"==",
"1.2.0"
]
]
},
{
"name": "exifread",
"specs": [
[
"==",
"3.0.0"
]
]
},
{
"name": "filetype",
"specs": [
[
"==",
"1.2.0"
]
]
},
{
"name": "flask",
"specs": [
[
"==",
"2.3.3"
]
]
},
{
"name": "idna",
"specs": [
[
"==",
"3.7"
]
]
},
{
"name": "importlib-metadata",
"specs": [
[
"==",
"7.1.0"
]
]
},
{
"name": "inifile",
"specs": [
[
"==",
"0.4.1"
]
]
},
{
"name": "itsdangerous",
"specs": [
[
"==",
"2.2.0"
]
]
},
{
"name": "jinja2",
"specs": [
[
"==",
"3.1.4"
]
]
},
{
"name": "lektor",
"specs": [
[
"==",
"3.3.11"
]
]
},
{
"name": "lxml",
"specs": [
[
"==",
"5.2.1"
]
]
},
{
"name": "markupsafe",
"specs": [
[
"==",
"2.1.5"
]
]
},
{
"name": "mistune",
"specs": [
[
"==",
"0.8.4"
]
]
},
{
"name": "pillow",
"specs": [
[
"==",
"10.3.0"
]
]
},
{
"name": "pip",
"specs": [
[
"==",
"24.0"
]
]
},
{
"name": "python-slugify",
"specs": [
[
"==",
"8.0.4"
]
]
},
{
"name": "pytz",
"specs": [
[
"==",
"2024.1"
]
]
},
{
"name": "requests",
"specs": [
[
"==",
"2.31.0"
]
]
},
{
"name": "setuptools",
"specs": [
[
"==",
"56.0.0"
]
]
},
{
"name": "text-unidecode",
"specs": [
[
"==",
"1.3"
]
]
},
{
"name": "typedload",
"specs": [
[
"==",
"2.28"
]
]
},
{
"name": "urllib3",
"specs": [
[
"==",
"2.2.1"
]
]
},
{
"name": "watchdog",
"specs": [
[
"==",
"4.0.0"
]
]
},
{
"name": "werkzeug",
"specs": [
[
"==",
"2.3.8"
]
]
},
{
"name": "zipp",
"specs": [
[
"==",
"3.18.1"
]
]
}
],
"lcname": "lektor-imgutils"
}