Repository navigation
FAQ
The source was too small. The largest formats are 1920x1080 and 1600x2560, so start from at least 2000px on the long edge, ideally exported from a vector original. Nothing downstream recovers detail that was never there.
Expected, for most detailed logos. Shrink your source to 32x32 and look: if it is a blob, generate the wide formats from your full lockup and the small square icons from a simplified mark, in two runs. See Preparing your source image.
It treats soft shadows and glows as background. If your source already has a transparent background, turn background removal off entirely: there is nothing to remove and it can only lose pixels. If you do need it, choose the model that matches the content rather than leaving it on Auto.
That is the radial gradient fill, derived from the image's prominent colours. It flatters a social banner and looks wrong on an icon. Turn it off for the formats where you want a flat or transparent background.
PNG for anything needing transparency, WEBP for web delivery you control, JPG for photographic backgrounds, ICO for the favicon. Never JPG for an icon: no alpha channel.
BRANDKIT_SECRET_KEY is not set. With multiple gunicorn workers each generates its own ephemeral key and they reject each other's CSRF tokens, so the failure depends on which worker answered. Set it and restart.
Defaults are 200 requests a day and 50 an hour, per IP. An office behind one address shares that allowance. Raise the limits or exempt your network.
Background removal loads an ONNX model, which is the memory-heavy part. Give the container more RAM, or lower BRANDKIT_MAX_UPLOAD_MB so fewer large images are held at once.
rembg downloads its model on first use, from GitHub. On a host without outbound access, pre-seed ~/.u2net/.
static/uploads/, swept periodically: by default every hour, deleting files older than 24 hours. Configurable with BRANDKIT_CLEANUP_INTERVAL_HOURS and BRANDKIT_RETENTION_HOURS. Do not disable the sweep on a shared instance.
No. Processing is in-process with Pillow, NumPy and ONNX Runtime, and since v1.1.3 the page itself loads no third-party assets. The only outbound connection is the one-off model download for background removal. Earlier versions loaded Tailwind and Alpine from CDNs, which is a reason to upgrade a hosted instance.
No. Anyone who can reach it can use it. Fine on a private network; put authentication in front of it otherwise.
Yes, there is an HTTP API documented in the reference. Useful for regenerating a whole asset set from CI when the logo changes.
Yes, config.json holds the format definitions, each with a width, height and description, plus the category groupings and the available output types.
BrandKit · Documentation · Issues · MIT · Self-hosted: your images stay on your machine
In this wiki
Reference
Project