A social media simple thumbnails creator
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