Skip to main content

quickthumb

quickthumb

Thumbnails, social images, and slides from Python or JSON.
Describe the image as layers. The same input gives the same pixels every time.

Get started · Browse recipes · API reference

Launch announcement created with quickthumb

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.

pip install quickthumb
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 →

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.
YouTube thumbnail Commentary thumbnail Tutorial cover
YouTube thumbnail Commentary thumbnail Tutorial cover
Instagram news card Podcast promo
Instagram news card Podcast interview promo
Vertical shorts cover Animated product reel
Vertical shorts cover Animated product reel

Explore the examples and source files →

Output formats

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 and Exporting for the exact setup and format behavior.

Where to go next

I want to… Start here
Make my first graphic Getting Started
Build a proven layout Cookbook
Generate visuals with JSON or AI JSON & AI Workflow
Build a multi-slide deck Deck guide
Validate a composition Diagnostics & CLI
Look up a class or option API Reference

License

MIT

Metadata

Release files for quickthumb 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for quickthumb 0.8.0
File Size Uploaded Provenance Actions
quickthumb-0.8.0.tar.gz 88.3 MB Without provenance Details for quickthumb-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for quickthumb 0.8.0
File Interpreter ABI Platform Actions
quickthumb-0.8.0-py3-none-any.whl Python 3 none any Details for quickthumb-0.8.0-py3-none-any.whl

Total release size: 88.8 MB

Release files / quickthumb-0.8.0.tar.gz

Download URL quickthumb-0.8.0.tar.gz
Size 88.3 MB
Tags Source
SHA-256 checksum
How to use checksums
fdfa1819156e6ccb7150f46293c0447af5cdfc9f88b977596043b45cac4b68f0
BLAKE2b-256 checksum
How to use checksums
9203b421bc2de89126fc3df7f5e7c94ab6f15446334928c3bd324aa7199277f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / quickthumb-0.8.0-py3-none-any.whl

Download URL quickthumb-0.8.0-py3-none-any.whl
Size 458.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ff43b71790e7617ad99540cc4edbcb61c8118587f1542f32537a3dd0d8a1e5ee
BLAKE2b-256 checksum
How to use checksums
742bddea00714b67390e4019006eea57c35094dd7dc3c62eed76f22459114d14
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.6 {"installer":{"name":"uv","version":"0.13.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for quickthumb 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page