Metadata-Version: 2.5
Name: quickthumb
Version: 0.8.0
Summary: Programmatic thumbnail and social image generation with layered Python and JSON APIs
Project-URL: Homepage, https://github.com/sjquant/quickthumb
Project-URL: Repository, https://github.com/sjquant/quickthumb
Project-URL: Issues, https://github.com/sjquant/quickthumb/issues
Project-URL: Documentation, https://github.com/sjquant/quickthumb#readme
Author: Seonu Jang
License: MIT
License-File: LICENSE
Keywords: ai,automation,graphics,image-generation,pillow,social-media,thumbnail,thumbnails
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Artistic Software
Classifier: Topic :: Multimedia :: Graphics
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.11
Requires-Dist: pillow<14.0.0,>=13.0.0
Requires-Dist: pydantic<3.0.0,>=2.12.5
Requires-Dist: qrcode<9.0,>=8.2
Requires-Dist: typing-extensions<5.0.0,>=4.15.0
Provides-Extra: cli
Requires-Dist: jinja2<4.0.0,>=3.1.0; extra == 'cli'
Requires-Dist: typer<1.0,>=0.24.1; extra == 'cli'
Requires-Dist: watchfiles<2.0.0,>=1.0.0; extra == 'cli'
Provides-Extra: lottie
Requires-Dist: fonttools<5.0.0,>=4.0.0; extra == 'lottie'
Provides-Extra: pdf
Requires-Dist: fonttools<5.0.0,>=4.0.0; extra == 'pdf'
Requires-Dist: pypdfium2<6.0.0,>=5.10.1; extra == 'pdf'
Requires-Dist: reportlab<6.0.0,>=4.0.0; extra == 'pdf'
Provides-Extra: pptx
Requires-Dist: python-pptx<2.0,>=1.0.2; extra == 'pptx'
Provides-Extra: rembg
Requires-Dist: onnxruntime<2.0.0,>=1.24.1; (python_version >= '3.11') and extra == 'rembg'
Requires-Dist: rembg<3.0.0,>=2.0.86; (python_version >= '3.11') and extra == 'rembg'
Provides-Extra: svg
Requires-Dist: cairosvg<3.0.0,>=2.7.0; extra == 'svg'
Description-Content-Type: text/markdown

<p align="center">
  <img src="docs/assets/brand/quickthumb-icon-192.png" alt="quickthumb" width="88" />
</p>

<h1 align="center">quickthumb</h1>

<p align="center">
  <strong>Thumbnails, social images, and slides from Python or JSON.</strong>
  <br />
  Describe the image as layers. The same input gives the same pixels every time.
</p>

<p align="center">
  <a href="https://quickthumb.solaqua.dev/getting-started/">Get started</a>
  ·
  <a href="https://quickthumb.solaqua.dev/cookbook/">Browse recipes</a>
  ·
  <a href="https://quickthumb.solaqua.dev/api/">API reference</a>
</p>

![Launch announcement created with quickthumb](examples/launch_announcement.png)

## Quick start

Write a design once as code or JSON, then change the text, images, or colors and
render it again as many times as you need.

```bash
pip install quickthumb
```

```python
from quickthumb import Canvas

canvas = (
    Canvas.from_aspect_ratio("16:9", base_width=1280)
    .background(color="#F5F5F7")
    .text(
        "Make the message impossible to miss.",
        size=88,
        color="#1D1D1F",
        weight=700,
        position=(80, 180),
        max_width=820,
    )
    .shape(
        "rectangle",
        position=(80, 500),
        width=180,
        height=8,
        color="#0066CC",
    )
)

canvas.render("announcement.png")
```

The core workflow stays small:

1. Create a `Canvas`.
2. Add backgrounds, text, images, shapes, SVG, or auto-layout groups.
3. Call `render()`.

[Follow the five-minute guide →](https://quickthumb.solaqua.dev/getting-started/)

## What it does

- Layers are drawn in the order you add them, the same order you'd describe the image in.
- Every design can be written in Python or as a JSON spec, so a template or an LLM can produce it.
- One canvas exports to PNG, JPEG, WebP, SVG, HTML, PDF, PPTX, GIF, MP4, and WebM.
- `diagnose()` finds text that is too small, runs off the canvas, or has too little contrast, before you export.

## Gallery

| YouTube thumbnail | Commentary thumbnail | Tutorial cover |
| --- | --- | --- |
| ![YouTube thumbnail](examples/youtube_thumbnail_01.png) | ![Commentary thumbnail](examples/youtube_reaction.png) | ![Tutorial cover](examples/youtube_tutorial_explainer.png) |

| Instagram news card | Podcast promo |
| --- | --- |
| ![Instagram news card](examples/instagram_news_card.png) | ![Podcast interview promo](examples/podcast_interview_promo.png) |

<table>
  <thead>
    <tr>
      <th>Vertical shorts cover</th>
      <th>Animated product reel</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td align="center">
        <img src="examples/shorts_cover_agent.png" alt="Vertical shorts cover" width="56%" />
      </td>
      <td align="center">
        <img src="examples/product_hype_reel.gif" alt="Animated product reel" width="56%" />
      </td>
    </tr>
  </tbody>
</table>

[Explore the examples and source files →](examples/README.md)

## Output formats

```python
canvas.render("creative.png")
canvas.render("creative.svg")
canvas.render("creative.html")
canvas.render("creative.pptx")
canvas.render("creative.pdf")
canvas.render("creative.gif")
canvas.render("creative.mp4")
```

Multi-slide `Deck` compositions can also render to numbered images, PDF, PPTX,
HTML slideshows, GIF, WebM, ProRes 4444 MOV, and narrated MP4.

Some formats use optional dependencies. See
[Installation](https://quickthumb.solaqua.dev/installation/) and
[Exporting](https://quickthumb.solaqua.dev/exports/) for the exact setup and format behavior.

## Where to go next

| I want to… | Start here |
| --- | --- |
| Make my first graphic | [Getting Started](https://quickthumb.solaqua.dev/getting-started/) |
| Build a proven layout | [Cookbook](https://quickthumb.solaqua.dev/cookbook/) |
| Generate visuals with JSON or AI | [JSON & AI Workflow](https://quickthumb.solaqua.dev/json-schema/) |
| Build a multi-slide deck | [Deck guide](https://quickthumb.solaqua.dev/api/deck/) |
| Validate a composition | [Diagnostics & CLI](https://quickthumb.solaqua.dev/diagnostics/) |
| Look up a class or option | [API Reference](https://quickthumb.solaqua.dev/api/) |

## License

[MIT](LICENSE)
