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://",
    "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.2.0.tar.gz (9.8 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.2.0-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for thumbny-1.2.0.tar.gz
Algorithm Hash digest
SHA256 9e08b4da68d99f0b594c3c7855cc727b94220883ba4826d7b6b69721fc81cc49
MD5 59caf24602928947b1ee4de24d5d1ccb
BLAKE2b-256 a15d40a09328ebbab68a8217c13518574eace502881de25ebf0b17be71bea799

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thumbny-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 16.5 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 82aba704ffd640b7e1c43920bfe4c347378448567c2a283d472532f7066a7706
MD5 24db027e96a2973c526285d47599fa81
BLAKE2b-256 20e341573aa4a65ab54d969228d989af637c63e78df2bd7b5470cde4a076a211

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