{ "info": { "author": "Alexandre Fonseca", "author_email": "alexandrejorgefonseca@gmail.com", "bugtrack_url": null, "classifiers": [], "description": "######################\npelican-advthumbnailer\n######################\n\nA thumbnail generator for `Pelican\n`_ that automatically scans\nall image tags looking for missing images and creates the thumbnails\nbased on the filename.\n\nBased on the existing `thumbnailer plugin\n`_.\n\nInstall\n=======\n\nTo install the library, you can use\n`pip\n`_\n\n.. code-block:: bash\n\n $ pip install pelican-advthumbnailer\n\n\nUsage\n=====\n\n1. Update ``pelicanconf.py``:\n\n 1. Add ``advthumbnailer`` to ``PLUGINS``.\n\n You should add it before any image optimization plugins.\n\n .. code-block:: python\n \n PLUGINS = [..., 'advthumbnailer']\n\n2. Creating a thumbnail:\n\n 1. Ensure original image is copied to the output folder (add to \n ``STATIC_PATHS`` or use the `autostatic plugin\n `_).\n\n E.g: ``output/images/example.png``\n\n 2. Add an ```` (or a ```` tag) containing as source (or scrset): ::\n \n images/thumbnails//example.png\n\n Where ```` is one of the following:\n\n - ````: Perform a square resize of the image to ``x`` pixels.\n - ``x``: Perform a scale and crop resize of the image to ``x`` pixels.\n - ``x_`` or ``_x``: Perform an aspect-preserving resize of the image enforcing the specified with or height, respectively, in pixels.\n\n ```` can also be terminated with a `!` in which case upscales (e.g:\n resize 100px to 200px) will also be allowed. By default this is not the\n case.\n\n Example:\n\n .. code-block:: html\n\n \n\n\n 3. Upon output generation, all files are scanned for image sources and those\n matching the ``.*thumbnails//.+`` regex are thumbnailed\n according to the ````.\n\n\nOptions\n=======\n\n- ``ADVTHUMB_SEARCH_IMAGES_IN_ANCHORS`` (default: ``False``): Boolean option\n that determines if advthumbnailer should consider the ``href`` attribute of \n ```` elements as thumbnail paths.\n\n\nIntegrations\n============\n\npelican-autostatic\n------------------\nIntegration with `pelican-autostatic\n`_ is achieved by adding\nan option to the ``{static ...}`` replacement.\n\n::\n\n {static images/example.png thumb=\"100x_\"}\n\nJinja2\n------\nIntegration with Jinja2 is achieved via the ``thumbnail`` function.\n\n::\n\n \n\nExample usage\n=============\nFor a working example check `my site\n`_ and `my site's source code\n`_.\n", "description_content_type": null, "docs_url": null, "download_url": "https://github.com/AlexJF/pelican-advthumbnailer/archive/v0.7.0.zip", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/AlexJF/pelican-advthumbnailer", "keywords": "pelican blog static thumbnail generation", "license": "Apache", "maintainer": "", "maintainer_email": "", "name": "pelican-advthumbnailer", "package_url": "https://pypi.org/project/pelican-advthumbnailer/", "platform": "", "project_url": "https://pypi.org/project/pelican-advthumbnailer/", "project_urls": { "Download": "https://github.com/AlexJF/pelican-advthumbnailer/archive/v0.7.0.zip", "Homepage": "https://github.com/AlexJF/pelican-advthumbnailer" }, "release_url": "https://pypi.org/project/pelican-advthumbnailer/0.7.0/", "requires_dist": null, "requires_python": "", "summary": "A thumbnail generator for Pelican that operates by looking at the filename of missing files to determine thumb format.", "version": "0.7.0" }, "last_serial": 2857030, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "e97972e4599e504c89fcd7688a259789", "sha256": "79c941d7fd34a10deb18520f8345c4ac9fba249b68a564ee7f95b05016fe8b32" }, "downloads": -1, "filename": "pelican-advthumbnailer-0.1.0.tar.gz", "has_sig": false, "md5_digest": "e97972e4599e504c89fcd7688a259789", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8728, "upload_time": "2014-08-26T23:12:57", "url": "https://files.pythonhosted.org/packages/77/d9/0eaf10d713ff62bb64101de21968169cb60802e57a4077b1774643bf2f8c/pelican-advthumbnailer-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "65b220a206ca647334df72b5083de93e", "sha256": "787d70d9e54d939d9e0e29e01e29a7c22f45010319774b5fd2e9c04f3de73486" }, "downloads": -1, "filename": "pelican-advthumbnailer-0.2.0.tar.gz", "has_sig": false, "md5_digest": "65b220a206ca647334df72b5083de93e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9086, "upload_time": "2014-09-12T10:28:48", "url": "https://files.pythonhosted.org/packages/e7/2c/95ad09ab15f3ad723a3191767d6ec522dbb0469761f4faa18b60729fd2e4/pelican-advthumbnailer-0.2.0.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "a57068bfa0971519fae06a55f3867378", "sha256": "7f07b7a00a46c68c1afb834907d472dcab132bbb612164eae4758a1694492a6a" }, "downloads": -1, "filename": "pelican-advthumbnailer-0.3.0.tar.gz", "has_sig": false, "md5_digest": "a57068bfa0971519fae06a55f3867378", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9229, "upload_time": "2014-09-21T12:08:47", "url": "https://files.pythonhosted.org/packages/c5/dd/cbe7cba3b9ed8c4b29507bcf9d3519abdcd17f7385e84f23ecd2c97d39eb/pelican-advthumbnailer-0.3.0.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "79d6aafe4a7fe0018521fbc8ac6c162d", "sha256": "ee843dca5245fb568f8ce139c929cdba7238ee2b2ece27f0074877d222ace0e8" }, "downloads": -1, "filename": "pelican-advthumbnailer-0.4.0.zip", "has_sig": false, "md5_digest": "79d6aafe4a7fe0018521fbc8ac6c162d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14316, "upload_time": "2015-01-10T15:31:36", "url": "https://files.pythonhosted.org/packages/b8/49/964a464972217bca7a7e2dfb3cbe07f2ec7438b0267eb81ca972a1ef465b/pelican-advthumbnailer-0.4.0.zip" } ], "0.5.0": [ { "comment_text": "", "digests": { "md5": "dd696b8d02ebf880aaeec0a7721ba5d1", "sha256": "5555fd56928aeb3b456b4535f7ce40ac2dc7d0681fc2aeeb9968ed1feef318a0" }, "downloads": -1, "filename": "pelican-advthumbnailer-0.5.0.zip", "has_sig": false, "md5_digest": "dd696b8d02ebf880aaeec0a7721ba5d1", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14322, "upload_time": "2016-07-29T11:39:23", "url": "https://files.pythonhosted.org/packages/48/84/824db1944b6d98824ae82775a26bc0957aec9a75e8fe412a9595e1c66f3c/pelican-advthumbnailer-0.5.0.zip" } ], "0.6.0": [ { "comment_text": "", "digests": { "md5": "2c08ef0bf49a9070fab1e596964105dc", "sha256": "507786d33429efbbd428a3c10541251ecf6cfcbb0ccd8bdb4cfdecc31fdc3ec3" }, "downloads": -1, "filename": "pelican-advthumbnailer-0.6.0.zip", "has_sig": false, "md5_digest": "2c08ef0bf49a9070fab1e596964105dc", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 14444, "upload_time": "2016-09-24T10:34:12", "url": "https://files.pythonhosted.org/packages/c5/85/171cc664d0eab79fac55f34325bdf29b4ff174559fdfae8e146d8446fed7/pelican-advthumbnailer-0.6.0.zip" } ], "0.7.0": [ { "comment_text": "", "digests": { "md5": "3f1fb5ee8bfceafbc45832c78027f9c0", "sha256": "36ecd86edea1f57d3bd3d3b1e760d22026ecd23e4ba569025fe6c474f50d896c" }, "downloads": -1, "filename": "pelican-advthumbnailer-0.7.0.tar.gz", "has_sig": false, "md5_digest": "3f1fb5ee8bfceafbc45832c78027f9c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9770, "upload_time": "2017-05-07T12:23:13", "url": "https://files.pythonhosted.org/packages/48/03/e877bf5f4c7b7d7e327603f1a460a35a3fbef570dead9a3a700cadaadd91/pelican-advthumbnailer-0.7.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "3f1fb5ee8bfceafbc45832c78027f9c0", "sha256": "36ecd86edea1f57d3bd3d3b1e760d22026ecd23e4ba569025fe6c474f50d896c" }, "downloads": -1, "filename": "pelican-advthumbnailer-0.7.0.tar.gz", "has_sig": false, "md5_digest": "3f1fb5ee8bfceafbc45832c78027f9c0", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 9770, "upload_time": "2017-05-07T12:23:13", "url": "https://files.pythonhosted.org/packages/48/03/e877bf5f4c7b7d7e327603f1a460a35a3fbef570dead9a3a700cadaadd91/pelican-advthumbnailer-0.7.0.tar.gz" } ] }