Generate images of code and terminal output
Freeze is a command-line tool that generates beautiful images of code and terminal output. It can capture syntax-highlighted code snippets from files or ANSI output from terminal commands, outputting them as PNG, SVG, or WebP images. This makes it perfect for creating screenshots for documentation, presentations, or sharing code snippets on social media.
The tool offers extensive customization options including themes, fonts, borders, shadows, padding, margins, and window controls. It features automatic language detection for syntax highlighting and can capture specific line ranges. Freeze also includes a fully interactive TUI mode for easy visual configuration, with settings saved to a user config file.
Freeze is ideal for developers, technical writers, and educators who need to create polished visual representations of code or terminal sessions. Whether you're documenting APIs, creating tutorials, or sharing code examples, Freeze provides a professional way to present your content with consistent styling and branding.
# via Homebrew
brew install charmbracelet/tap/freeze
# via Go
go install github.com/charmbracelet/freeze@latest
# via Arch Linux
yay -S freeze

