Thumbgen is configured entirely at runtime through environment variables — no source code changes or rebuilds are needed to adapt the service to your deployment environment. You can switch the shell used forDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/sanskarsharma/thumbgen/llms.txt
Use this file to discover all available pages before exploring further.
ffmpeg commands, restrict the set of accepted image formats, or expand the list of supported video codecs, all by setting variables before the process starts.
Variables
Controls which shell is used to invoke
ffmpeg commands during video thumbnail generation. This variable has no effect on image processing.When this variable is absent (the default), Thumbgen uses ash — the POSIX-compatible shell bundled with Alpine Linux, which is the base image used in the official Docker distribution.Set this to LOCAL to switch the shell to bash. This is required when running Thumbgen directly on macOS or most Linux distributions outside of Alpine, where ash is not available.| Value | Shell used |
|---|---|
| (not set) | ash (Alpine default) |
LOCAL | bash |
A JSON-encoded array of MIME type strings that Thumbgen will accept as images. When this variable is set, it completely replaces the built-in default list.If this variable is not set, Thumbgen falls back to its compiled-in defaults:Any request whose
Content-Type does not match a value in the active list is rejected with HTTP 422.A JSON-encoded array of MIME type strings that Thumbgen will accept as videos. When this variable is set, it completely replaces the built-in default list.If this variable is not set, Thumbgen falls back to its compiled-in defaults:Any request whose
Content-Type does not match a value in the active list is rejected with HTTP 422.Examples
The port Thumbgen listens on — 4499 — is hardcoded in
main.go and cannot be changed via an environment variable. To run on a different host port, use Docker’s port-mapping flag (e.g. -p 8080:4499) rather than trying to configure the service directly.