{ "info": { "author": "Fridolin Pokorny", "author_email": "fridolin.pokorny@gmail.com", "bugtrack_url": null, "classifiers": [ "Environment :: Console", "Intended Audience :: End Users/Desktop", "License :: OSI Approved :: GNU General Public License v2 (GPLv2)", "Operating System :: OS Independent", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Topic :: Multimedia :: Graphics", "Topic :: Multimedia :: Graphics :: Graphics Conversion", "Topic :: Multimedia :: Graphics :: Presentation", "Topic :: Utilities" ], "description": "hexsticker\n----------\n\nProduce hexagon stickers automatically from an image in compliance with the `Stickers Standard `_.\n\n\nInstallation\n============\n\n.. code-block:: console\n\n $ pip install hexsticker\n\n\nAfter the installation step listed above, you will be able to use the `hexsticker` command:\n\n.. code-block:: console\n\n $ hexsticker --help\n\n\nRequirements\n============\n\n* Python 3.6+\n\n\nExamples\n========\n\nLet's create a hexagon sticker for the `Selinon project `_.\n\nHere is the input image:\n\n.. figure:: https://raw.githubusercontent.com/fridex/hexsticker/master/fig/input/selinon.png\n :alt: Selinon input logo\n :align: center\n\nLet's create a hexagon sticker:\n\n.. code-block:: console\n\n $ hexsticker selinon.png -o selinon-sticker-1.png\n INFO:hexsticker.create:Writing output to 'selinon-sticker-1.png'\n\n\nThe resulting image is:\n\n.. figure:: https://raw.githubusercontent.com/fridex/hexsticker/master/fig/output/selinon-sticker-1.png\n :alt: Selinon hexagon sticker sticker 1\n :align: center\n :scale: 50%\n\nAs can be seen above, there are some parts cut off - let's add some padding to the image:\n\n.. code-block:: console\n\n $ hexsticker input/selinon.png -o output/selinon-sticker-2.png --padding-size 25\n INFO:hexsticker.create:Writing output to 'selinon-sticker-2.png'\n\n\n.. figure:: https://raw.githubusercontent.com/fridex/hexsticker/master/fig/output/selinon-sticker-2.png\n :alt: Selinon hexagon sticker sticker 2\n :align: center\n :scale: 50%\n\n\nThe padded part is white by default - that's why there are missing spikes of hexagon. Let's set color of padded area to the same color as background color of the original image:\n\n.. code-block:: console\n\n $ hexsticker input/selinon.png -o output/selinon-sticker-3.png --padding-size 25 --padding-color '#66cfa7'\n INFO:hexsticker.create:Writing output to 'selinon-sticker-3.png'\n\n.. figure:: https://raw.githubusercontent.com/fridex/hexsticker/master/fig/output/selinon-sticker-3.png\n :alt: Selinon hexagon sticker sticker 3\n :align: center\n :scale: 50%\n\n\nNice! What we could do next? Let's try to add a hexagon border:\n\n.. code-block:: console\n\n $ hexsticker input/selinon.png -o output/selinon-sticker-4.png --padding-size 25 --padding-color '#66cfa7' --border-size 35\n INFO:hexsticker.create:Writing output to 'selinon-sticker-4.png'\n\n\n.. figure:: https://raw.githubusercontent.com/fridex/hexsticker/master/fig/output/selinon-sticker-4.png\n :alt: Selinon hexagon sticker sticker 4\n :align: center\n :scale: 50%\n\nEhm, the default black one does not look that good in this case. Let's try some color that fits color scheme:\n\n.. code-block:: console\n\n $ hexsticker input/selinon.png -o output/selinon-sticker-5.png --padding-size 25 --padding-color '#66cfa7' --border-size 35 --border-color '#197a9f'\n INFO:hexsticker.create:Writing output to 'selinon-sticker-5.png'\n\n\n.. figure:: https://raw.githubusercontent.com/fridex/hexsticker/master/fig/output/selinon-sticker-5.png\n :alt: Selinon hexagon sticker sticker 5\n :align: center\n :scale: 50%\n\nNote that the edges of the hexagon look a little jagged. You can add ``--supersample 2`` to the previous command to remedy this. The number given sets the scale factor to use. Greater values result in a smoother result, at the expense of higher memory usage. This effect has diminishing returns; usually a value of 2 is enough for a nice result and going higher than 4 does not make much noticeable improvement.\n\nAs you can see, this tool can automate creation of hexagon stickers so they respect the hexagon standard. Feel free to additionally adjust the resulting image of your logo or the input image.\n\nThis tool supports only raster graphics.\n\nRunning from repo\n=================\n\nTo run hexsticker from repository run the following commands:\n\n.. code-block:: console\n\n $ git clone https://github.com/fridex/hexsticker # or use ssh\n $ cd hexsticker\n $ pip3 install -r requirements.txt --user\n $ export PYTHONPATH='.'\n $ ./hexsticker-cli --help\n\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/fridex/hexsticker", "keywords": "hexagon stickers hexagon-stickers", "license": "GPLv2", "maintainer": "Fridolin Pokorny", "maintainer_email": "fridolin.pokorny@gmail.com", "name": "hexsticker", "package_url": "https://pypi.org/project/hexsticker/", "platform": "", "project_url": "https://pypi.org/project/hexsticker/", "project_urls": { "Homepage": "https://github.com/fridex/hexsticker" }, "release_url": "https://pypi.org/project/hexsticker/1.2.0/", "requires_dist": [ "click", "pillow" ], "requires_python": "", "summary": "Convert any image to image that conforms with hexagon stickers standard.", "version": "1.2.0" }, "last_serial": 4597384, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "37a01453b4fe7cd3fd90412e9c30221e", "sha256": "3d11113b46192b47697d59506c3970ab685693f059a6ed67ab643abcc7bc2b0e" }, "downloads": -1, "filename": "hexsticker-1.0.0-py3-none-any.whl", "has_sig": false, "md5_digest": "37a01453b4fe7cd3fd90412e9c30221e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8587, "upload_time": "2018-03-31T21:22:42", "url": "https://files.pythonhosted.org/packages/f2/18/636ef4ae5366eeae5ee3f72211784d712c1bd92ae4a8943ba8c38ae140de/hexsticker-1.0.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "e0a052b8dd29b5c8a557a1046a7998f7", "sha256": "59b14f59e3874571cb2efc18a119fb04ee9f7bcab63515cee18f3e35348a29cd" }, "downloads": -1, "filename": "hexsticker-1.0.0.tar.gz", "has_sig": false, "md5_digest": "e0a052b8dd29b5c8a557a1046a7998f7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5856, "upload_time": "2018-03-31T21:22:43", "url": "https://files.pythonhosted.org/packages/c3/72/77139816dcc7184eb280519afc9e1d6230222406ca3c3345fded0e93424c/hexsticker-1.0.0.tar.gz" } ], "1.0.0rc1": [ { "comment_text": "", "digests": { "md5": "596f25d921014d4dbd18b5c81916b87c", "sha256": "de4ca81efa895caa13e133843b13152b317e0a1debed98340d75f9611ac21ccb" }, "downloads": -1, "filename": "hexsticker-1.0.0rc1-py3-none-any.whl", "has_sig": false, "md5_digest": "596f25d921014d4dbd18b5c81916b87c", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 8643, "upload_time": "2018-03-31T21:20:00", "url": "https://files.pythonhosted.org/packages/f0/3a/dce84a68a93b6ca514ccecdd8b86a62dc0f688fa663497464841f8982730/hexsticker-1.0.0rc1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "54915177bd06027dcc9c08ad2c40d25c", "sha256": "0d9ec2f581a162f7090988a15872a56d0a05c3b55b6c7cebd798122568995ebe" }, "downloads": -1, "filename": "hexsticker-1.0.0rc1.tar.gz", "has_sig": false, "md5_digest": "54915177bd06027dcc9c08ad2c40d25c", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 5870, "upload_time": "2018-03-31T21:20:01", "url": "https://files.pythonhosted.org/packages/8b/93/5b7b03322d1f1a7086abea36f03d34d18605229412f67ec8d8cc41e19532/hexsticker-1.0.0rc1.tar.gz" } ], "1.1.0": [ { "comment_text": "", "digests": { "md5": "859dda6f676aa790528bf18de9cdd9d6", "sha256": "4bd0d3118466191defc7e11beb64c176a1005bf0541741b7e6bb42902ec1aaa1" }, "downloads": -1, "filename": "hexsticker-1.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "859dda6f676aa790528bf18de9cdd9d6", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 13778, "upload_time": "2018-10-10T19:58:03", "url": "https://files.pythonhosted.org/packages/7e/11/edbecee017eb049ad61e2e746402b682a4b35bc5130d3fc510fd842fae97/hexsticker-1.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "15e69653a79e039c4cc58d03ed9ae487", "sha256": "3173b1dc63576c577959929541c608f06ae633a9a73c3e0b4cf012744a885f60" }, "downloads": -1, "filename": "hexsticker-1.1.0.tar.gz", "has_sig": false, "md5_digest": "15e69653a79e039c4cc58d03ed9ae487", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6098, "upload_time": "2018-10-10T19:58:05", "url": "https://files.pythonhosted.org/packages/2a/32/519efcae3b981124a2906d5ccb1ddc56cd8d27b5f6a8326880afa0562ad5/hexsticker-1.1.0.tar.gz" } ], "1.2.0": [ { "comment_text": "", "digests": { "md5": "505de8f8afc9ad50529c5c4dfb3946f9", "sha256": "28aac200b57dd4eabf102c78e0d6254cc893b5061fe11d7f157ee9c72b497de4" }, "downloads": -1, "filename": "hexsticker-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "505de8f8afc9ad50529c5c4dfb3946f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14244, "upload_time": "2018-12-14T00:02:49", "url": "https://files.pythonhosted.org/packages/e0/f4/6779631ff7e4a0ddfbecdebd54b44c0cb1fe229cee520441c83b66dda48f/hexsticker-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "51933ebbe06cde0513c9be9441b1460d", "sha256": "1e328c8d652a05ed829e66f56b7dc8a9f20fa91a16c5b0fa914f7f423692696b" }, "downloads": -1, "filename": "hexsticker-1.2.0.tar.gz", "has_sig": false, "md5_digest": "51933ebbe06cde0513c9be9441b1460d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6553, "upload_time": "2018-12-14T00:02:51", "url": "https://files.pythonhosted.org/packages/c0/82/ebde0cafbe52da5102e932cb2bce12e939ee0113620bfcc3aa555b4db881/hexsticker-1.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "505de8f8afc9ad50529c5c4dfb3946f9", "sha256": "28aac200b57dd4eabf102c78e0d6254cc893b5061fe11d7f157ee9c72b497de4" }, "downloads": -1, "filename": "hexsticker-1.2.0-py3-none-any.whl", "has_sig": false, "md5_digest": "505de8f8afc9ad50529c5c4dfb3946f9", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 14244, "upload_time": "2018-12-14T00:02:49", "url": "https://files.pythonhosted.org/packages/e0/f4/6779631ff7e4a0ddfbecdebd54b44c0cb1fe229cee520441c83b66dda48f/hexsticker-1.2.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "51933ebbe06cde0513c9be9441b1460d", "sha256": "1e328c8d652a05ed829e66f56b7dc8a9f20fa91a16c5b0fa914f7f423692696b" }, "downloads": -1, "filename": "hexsticker-1.2.0.tar.gz", "has_sig": false, "md5_digest": "51933ebbe06cde0513c9be9441b1460d", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6553, "upload_time": "2018-12-14T00:02:51", "url": "https://files.pythonhosted.org/packages/c0/82/ebde0cafbe52da5102e932cb2bce12e939ee0113620bfcc3aa555b4db881/hexsticker-1.2.0.tar.gz" } ] }