| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Name | Name | Last commit date | ||
|---|---|---|---|---|
CodeLumer CLI is a powerful wrapper around the silicon rendering engine, designed to automate the process of creating code-style screenshots.
While browser-based tools are great for one-offs, CodeLumer CLI is built for developers who need speed and automation. It can process entire directories of source code in seconds, applying consistent styling, fonts, and window controls to every image.
This script relies on silicon for the rendering engine.
macOS (Homebrew):
brew install siliconLinux / Windows (via Cargo):
cargo install siliconClone this repo or download the script directly.
# Download the script
curl -o codelumer.sh [https://raw.githubusercontent.com/plantacerium/CodeLumer/main/codelumer.sh](https://raw.githubusercontent.com/plantacerium/CodeLumer/main/codelumer.sh)
# Make it executable
chmod +x codelumer.sh
# (Optional) Move to global path
sudo mv codelumer.sh /usr/local/bin/codesnapGenerate a snapshot of a single file using default settings (Dracula theme, 1920px width context).
sh codelumer.sh --font "Hack; Noto Color Emoji" --size 39 photo-test.shRecursively scan a directory and generate snapshots for all supported code files.
sh codelumer.sh --font "Hack; Noto Color Emoji" --size 39 ./phototestChange Theme and Font:
./codelumer.sh --theme Nord --font "JetBrains Mono" --size 28 app.rsMinimalist Style (No Window Controls or Line Numbers):
./codelumer.sh --no-window --no-line-numbers script.jsCustom Output Directory:
./codelumer.sh --output ./assets/blog-images ./srcCodeSnap CLI supports all standard .tmTheme syntax highlighting files.
To list all available themes on your machine:
./codelumer.sh --list-themesTip: You can install custom themes (like those from iTerm2-Color-Schemes) by placing .tmTheme files in ~/.config/silicon/themes/.
This tool stands on the shoulders of giants. A huge thank you to:
A robust Bash script using ImageMagick to automatically overlay a circular avatar onto a code snippet or screenshot, mimicking the modern "dual camera" or "picture-in-picture" recording style for professional content creation.
The script dynamically resizes the avatar relative to the background, applies a perfect circular mask, and adds a transparent shadow for a professional, floating effect.
You must have ImageMagick installed on your system.
Installation Commands:
| OS | Command |
|---|---|
| macOS (Homebrew) | brew install imagemagick |
| Ubuntu/Debian | sudo apt-get install imagemagick |
| CentOS/RHEL | sudo yum install ImageMagick |
| Fedora | sudo dnf install ImageMagick |
chmod +x lens_assembler.shThe script requires a background image (-b) and an avatar image (-a).
./lens_assembler.sh -b code.png -a face.png -o reaction_shot.png| Flag | Description | Values | Default |
|---|---|---|---|
| -b | Required. Path to the background (code snippet) image. | [path/to/file] | N/A |
| -a | Required. Path to the avatar (face) image. | [path/to/file] | N/A |
| -p | Position of the avatar in the corner. | tl, tr, bl, br | br (Bottom Right) |
| -s | Scale of the avatar as a percentage of the background width. | 1 to 100 | 20 |
| -o | Output filename. | [filename] | output.png |
Example: Top Left, 15% Scale
./lens_assembler.sh -b code.png -a avatar.png -p tl -s 15 -o presentation_shot.pngThis project is licensed under the MIT License - see the [LICENSE]
| Back | FazBrowse Home | New Git URL |