All Projects → fridex → Hexsticker

fridex / Hexsticker

Licence: gpl-2.0
Create hexagon stickers automatically

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Labels

Projects that are alternatives of or similar to Hexsticker

StickerLayout
sticker layout,图片缩放拖动。在图片上打图标和文字标签
Stars: ✭ 15 (-71.7%)
Mutual labels:  stickers
Draft Js Plugins
React Plugin Architecture for Draft.js including Slack-Like Emojis, FB-Like Mentions and Stickers
Stars: ✭ 3,918 (+7292.45%)
Mutual labels:  stickers
Pesdk Ios Examples
A fully customizable photo editor for your app.
Stars: ✭ 837 (+1479.25%)
Mutual labels:  stickers
tgskit
Toolkit for dealing with Telegram Stickers and Bodymovin/Lottie animations.
Stars: ✭ 45 (-15.09%)
Mutual labels:  stickers
Stickerview
a sticker view for android application
Stars: ✭ 291 (+449.06%)
Mutual labels:  stickers
Videobeautify
With this APP, you can do all kinds of professional optimising and beautifying to your videos
Stars: ✭ 450 (+749.06%)
Mutual labels:  stickers
nsa-monitored-device
Design and Stickers for NSA Monitored Devices
Stars: ✭ 68 (+28.3%)
Mutual labels:  stickers
Ae Sticker App
stickers for whatsapp
Stars: ✭ 31 (-41.51%)
Mutual labels:  stickers
Zdstickerview
ZDStickerView is an Objective-C module for iOS and offers complete configurability, including movement, resizing, rotation and more, with one finger.
Stars: ✭ 368 (+594.34%)
Mutual labels:  stickers
Ksnip
ksnip the cross-platform screenshot and annotation tool
Stars: ✭ 776 (+1364.15%)
Mutual labels:  stickers
planning
📅 📓 Plan the next HH.ex meet ups
Stars: ✭ 32 (-39.62%)
Mutual labels:  stickers
Whatsapp Bot
Whatsapp Bot - Node Js.
Stars: ✭ 271 (+411.32%)
Mutual labels:  stickers
Hexsticker
✨ Hexagon sticker in R
Stars: ✭ 464 (+775.47%)
Mutual labels:  stickers
ios-emojikeyboard
Emoji Keyboard for iOS (support sticker as well)
Stars: ✭ 19 (-64.15%)
Mutual labels:  stickers
Mypackbot
🤖 Your own unlimited pack of Telegram-stickers
Stars: ✭ 18 (-66.04%)
Mutual labels:  stickers
BiocStickers
Stickers for some Bioconductor packages - feel free to contribute and/or modify.
Stars: ✭ 109 (+105.66%)
Mutual labels:  stickers
Swag For Dev
😎 swag opportunities for developers
Stars: ✭ 3,905 (+7267.92%)
Mutual labels:  stickers
Hexagon
◀️⏹▶️ R package for creating hexagon shaped xy data frames.
Stars: ✭ 40 (-24.53%)
Mutual labels:  stickers
Adhesive
A chatbot serving as your glue between Telegram and Signal sticker packs
Stars: ✭ 25 (-52.83%)
Mutual labels:  stickers
Free Tshirts Stickers And Swag For Developers
List of free tshirts, stickers and swags available for developers
Stars: ✭ 661 (+1147.17%)
Mutual labels:  stickers

hexsticker

Produce hexagon stickers automatically from an image in compliance with the Stickers Standard <https://sticker.how/>_.

Installation

.. code-block:: console

$ pip install hexsticker

After the installation step listed above, you will be able to use the hexsticker command:

.. code-block:: console

$ hexsticker --help

Requirements

  • Python 3.6+

Examples

Let's create a hexagon sticker for the Selinon project <https://github.com/selinon>_.

Here is the input image:

.. figure:: https://raw.githubusercontent.com/fridex/hexsticker/master/fig/input/selinon.png :alt: Selinon input logo :align: center

Let's create a hexagon sticker:

.. code-block:: console

$ hexsticker selinon.png -o selinon-sticker-1.png INFO:hexsticker.create:Writing output to 'selinon-sticker-1.png'

The resulting image is:

.. figure:: https://raw.githubusercontent.com/fridex/hexsticker/master/fig/output/selinon-sticker-1.png :alt: Selinon hexagon sticker sticker 1 :align: center :scale: 50%

As can be seen above, there are some parts cut off - let's add some padding to the image:

.. code-block:: console

$ hexsticker input/selinon.png -o output/selinon-sticker-2.png --padding-size 25 INFO:hexsticker.create:Writing output to 'selinon-sticker-2.png'

.. figure:: https://raw.githubusercontent.com/fridex/hexsticker/master/fig/output/selinon-sticker-2.png :alt: Selinon hexagon sticker sticker 2 :align: center :scale: 50%

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:

.. code-block:: console

$ 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'

.. figure:: https://raw.githubusercontent.com/fridex/hexsticker/master/fig/output/selinon-sticker-3.png :alt: Selinon hexagon sticker sticker 3 :align: center :scale: 50%

Nice! What we could do next? Let's try to add a hexagon border:

.. code-block:: console

$ 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'

.. figure:: https://raw.githubusercontent.com/fridex/hexsticker/master/fig/output/selinon-sticker-4.png :alt: Selinon hexagon sticker sticker 4 :align: center :scale: 50%

Ehm, the default black one does not look that good in this case. Let's try some color that fits color scheme:

.. code-block:: console

$ 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'

.. figure:: https://raw.githubusercontent.com/fridex/hexsticker/master/fig/output/selinon-sticker-5.png :alt: Selinon hexagon sticker sticker 5 :align: center :scale: 50%

Note 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.

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.

This tool supports only raster graphics.

Running from repo

To run hexsticker from repository run the following commands:

.. code-block:: console

$ git clone https://github.com/fridex/hexsticker # or use ssh $ cd hexsticker $ pip3 install -r requirements.txt --user $ export PYTHONPATH='.' $ ./hexsticker-cli --help

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].