lektor-imgutils


Namelektor-imgutils JSON
Version 0.1 PyPI version JSON
download
home_page
SummaryImage handling utilities for Lektor.
upload_time2023-07-05 21:49:15
maintainer
docs_urlNone
author
requires_python~=3.8
licenseCopyright 2023 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 No requirements were recorded.
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.
Each section must have a "selector" key which is a CSS selector
to select the image elements.
The section names are insignificant.

Examples
--------

Set missing width and height attributes to all images::

  [default]
  selector = img
  size = yes

Set lazy loading and async decoding on all images in the ".content" part::

  [content]
  selector = .content img
  loading = lazy
  decoding = async

            

Raw data

            {
    "_id": null,
    "home_page": "",
    "name": "lektor-imgutils",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "~=3.8",
    "maintainer_email": "",
    "keywords": "lektor,plugin,image,responsive,srcset,picture",
    "author": "",
    "author_email": "\"H. Turgut Uyar\" <uyar@tekir.org>",
    "download_url": "https://files.pythonhosted.org/packages/0d/25/e17d1aebdb048b742ae8eefcae62534f0d8589154c822c1a1e94e3314511/lektor-imgutils-0.1.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.\nEach section must have a \"selector\" key which is a CSS selector\nto select the image elements.\nThe section names are insignificant.\n\nExamples\n--------\n\nSet missing width and height attributes to all images::\n\n  [default]\n  selector = img\n  size = yes\n\nSet lazy loading and async decoding on all images in the \".content\" part::\n\n  [content]\n  selector = .content img\n  loading = lazy\n  decoding = async\n",
    "bugtrack_url": null,
    "license": "Copyright 2023 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.1",
    "project_urls": {
        "repository": "https://github.com/uyar/lektor-imgutils"
    },
    "split_keywords": [
        "lektor",
        "plugin",
        "image",
        "responsive",
        "srcset",
        "picture"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a5b44a9f7e9622ce5a4fc41cefbab55b768cf30840e81c4de0866e96fa5b562f",
                "md5": "0d27d2eedea1e6f6fde869c468bfccef",
                "sha256": "c6b43ad645c185be904c1767239dd895b40bfac52df971be1d8dfdc9733b533f"
            },
            "downloads": -1,
            "filename": "lektor_imgutils-0.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "0d27d2eedea1e6f6fde869c468bfccef",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "~=3.8",
            "size": 5208,
            "upload_time": "2023-07-05T21:49:13",
            "upload_time_iso_8601": "2023-07-05T21:49:13.657471Z",
            "url": "https://files.pythonhosted.org/packages/a5/b4/4a9f7e9622ce5a4fc41cefbab55b768cf30840e81c4de0866e96fa5b562f/lektor_imgutils-0.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "0d25e17d1aebdb048b742ae8eefcae62534f0d8589154c822c1a1e94e3314511",
                "md5": "8b56cd71c1a77411091d139d21b83f74",
                "sha256": "2d92123289d55ca270a5ab86b171ab5fbe66afeee4cecb98f0d8400e4c50a00f"
            },
            "downloads": -1,
            "filename": "lektor-imgutils-0.1.tar.gz",
            "has_sig": false,
            "md5_digest": "8b56cd71c1a77411091d139d21b83f74",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "~=3.8",
            "size": 5372,
            "upload_time": "2023-07-05T21:49:15",
            "upload_time_iso_8601": "2023-07-05T21:49:15.326123Z",
            "url": "https://files.pythonhosted.org/packages/0d/25/e17d1aebdb048b742ae8eefcae62534f0d8589154c822c1a1e94e3314511/lektor-imgutils-0.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-07-05 21:49:15",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "uyar",
    "github_project": "lektor-imgutils",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "requirements": [],
    "lcname": "lektor-imgutils"
}
        
Elapsed time: 0.08717s