Metadata-Version: 2.1
Name: thumbny
Version: 1.3.1
Summary: Social Thumbnails Generator
Home-page: https://github.com/maltarouti/thumbny
Author: Murtada Altarouti
Author-email: murtada.altarouti@gmail.com
License: MIT
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: Pillow>=11.0.0

# Thumbny
A social media simple thumbnails creator

# Command Examples


Help command:
```bash
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:
```bash
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:
```bash
thumbny generate -d \
'{
  "name": "Test",
  "template_key": "youtube",
  "labels": [
    {
      "key": "title",
      "value": "Hello YouTube"
    }
  ]
}'
```

To remove a template:
```bash
thumbny delete -d '{"name": "template-name"}'
```

To list all templates info:
```bash
thumbny info -d '{"name": "template-name"}'
```

To list all templates:
```bash
thumbny templates
```
