Skip to main content

Social Thumbnails Generator

Project description

Thumbny

A social media simple thumbnails creator

Command Examples

Help command:

thumbny --help
usage: thumbny [-h] {create,delete,generate,templates} ...

positional arguments:
  {create,delete,generate,templates}
    create              Create a new template
    delete              Delete a template
    generate            Generate a thumbnail
    templates           List all templates

options:
  -h, --help            show this help message and exit

Create a template:

thumbny create -d \
'{
    "key": "youtube",
    "name": "sample thumbnail",
    "width": 1280,
    "height": 720,
    "background_color": "#ffffff",
    "background_image": "http://example.com/image.png",
    "labels": [
        {
            "key": "title",
            "content": "Sample",
            "position": {
                "key": "relative",
                "value": "middle,center"
            },
            "padding": {
              "top": 10,
              "bottom": 10,
              "left": 10,
              "right": 10
            }
            "alignment": "center",
            "font_color": "#333333",
            "font_size": 36
        }
    ]
}'

Use a template:

thumbny generate -d \
'{
  "name": "Test",
  "template_key": "youtube",
  "labels": [
    {
      "key": "title",
      "value": "Hello YouTube"
    }
  ]
}'

To remove a template:

thumbny delete -d '{"name": "template-name"}'

To list all templates info:

thumbny info -d '{"name": "template-name"}'

To list all templates:

thumbny templates

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thumbny-1.3.1.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thumbny-1.3.1-py3-none-any.whl (16.7 kB view details)

Uploaded Python 3

File details

Details for the file thumbny-1.3.1.tar.gz.

File metadata

  • Download URL: thumbny-1.3.1.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for thumbny-1.3.1.tar.gz
Algorithm Hash digest
SHA256 2013c0acbf9ad45ac6650af18399bd0043f1545cb386934a13e98fa6e5079919
MD5 740f557abdbd374cfc20716667315942
BLAKE2b-256 5f4f678e7d0871a8090778b2fe37293400e9f9cd6b646e6dfebf0ef9550e6408

See more details on using hashes here.

File details

Details for the file thumbny-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: thumbny-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 16.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.10.12

File hashes

Hashes for thumbny-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 9323c6a461605604e245242666f556c29d17fa9618d597a7cfe6d7913409435d
MD5 df4af74f2f496aecd95f65e2f8f7dd9a
BLAKE2b-256 8113da0def1aa52accd935ac5eaacc8f59ffb5796b0408759efa8075b87c356d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page