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",
    "labels": [
        {
            "key": "title",
            "content": "Sample",
            "position": {
                "key": "relative",
                "value": "top-center"
            },
            "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.0.1.tar.gz (8.9 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.0.1-py3-none-any.whl (15.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for thumbny-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fe7f6e102937a2cf8a9e0ddeb65b657769abca9edab0c0f78cc860f1107bb84b
MD5 95f587a522f1aa7ed8afd813c7dabee7
BLAKE2b-256 26109622d78677ad147ac29ebb5f127c99c41c5133a317d5f517e4215f99d4f3

See more details on using hashes here.

File details

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

File metadata

  • Download URL: thumbny-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.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.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 045d48ee8ecec09e1b500573371fa125228c631c8642132ed21dfe8feaa005ea
MD5 8fe2c30d35717768608e9a44350b7c19
BLAKE2b-256 5cb55d6484186bc56a39e59b49a65c0842fb9af974bc80ac21cf6650288bc615

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