hexsticker
Produce hexagon stickers automatically from an image in compliance to the Stickers Standard.
Installation
$ pip install hexsticker
After the installation step listed above, you will be able to use the hexsticker command:
$ hexsticker --help
Examples
Let’s create a hexagon sticker for the Selinon project.
Here is the input image:
Let’s create a hexagon sticker:
$ hexsticker selinon.png -o selinon-sticker-1.png
INFO:hexsticker.create:Writing output to 'selinon-sticker-1.png'
The resulting image is:
As can be seen above, there are some parts cut off - let’s add some padding to the image:
$ hexsticker input/selinon.png -o output/selinon-sticker-2.png --padding-size 25
INFO:hexsticker.create:Writing output to 'selinon-sticker-2.png'
The 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:
$ hexsticker input/selinon.png -o output/selinon-sticker-3.png --padding-size 25 --padding-color '#66cfa7'
INFO:hexsticker.create:Writing output to 'selinon-sticker-3.png'
Nice! What we could do next? Let’s try to add a hexagon border:
$ hexsticker input/selinon.png -o output/selinon-sticker-4.png --padding-size 25 --padding-color '#66cfa7' --border-size 35
INFO:hexsticker.create:Writing output to 'selinon-sticker-4.png'
Ehm, the default black one does not look that good in this case! Let’s try some color that fits color scheme:
$ hexsticker input/selinon.png -o output/selinon-sticker-5.png --padding-size 25 --padding-color '#66cfa7' --border-size 35 --border-color '#197a9f'
INFO:hexsticker.create:Writing output to 'selinon-sticker-5.png'
As 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.
Running from repo
To run hexsticker from repository run the following commands:
$ git clone https://github.com/fridex/hexsticker # or use ssh
$ cd hexsticker
$ export PYTHONPATH='.'
$ ./hexsticker-cli --help
Metadata
Release files for hexsticker 1.0.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| hexsticker-1.0.0.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hexsticker-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.4 kB
Release files / hexsticker-1.0.0.tar.gz
| Download URL | hexsticker-1.0.0.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
59b14f59e3874571cb2efc18a119fb04ee9f7bcab63515cee18f3e35348a29cd
|
|
BLAKE2b-256 checksum How to use checksums |
c37277139816dcc7184eb280519afc9e1d6230222406ca3c3345fded0e93424c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / hexsticker-1.0.0-py3-none-any.whl
| Download URL | hexsticker-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3d11113b46192b47697d59506c3970ab685693f059a6ed67ab643abcc7bc2b0e
|
|
BLAKE2b-256 checksum How to use checksums |
f218636ef4ae5366eeae5ee3f72211784d712c1bd92ae4a8943ba8c38ae140de
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |