PIT (Phono in Terminal) is a lightweight, cross-platform terminal image viewer. It renders PNG and JPEG images using ANSI escape codes, working on both modern terminals and legacy TTY environments.
-
🖼️ Features
-
✅ True color rendering with fallback to 256/16-color modes
-
🌀 Image manipulation via CLI: zoom, pan, flip, rotate
-
🎨 Custom background color for transparent PNGs
-
📐 Auto resize to terminal while preserving aspect ratio
-
📦 Zero dependencies beyond standard libraries
-
⚙️ Cross-platform: Linux, macOS, Windows, Termux, WSL, BSD
-
💻 Supports x86, ARM, RISC-V, MIPS, PowerPC
📚 Usage
🔍 Examples
🧪 Compatibility
| Linux (TTY) | ✅ Working | Best experience |
| macOS | ✅ Working | Tested with Terminal.app |
| Windows | ✅ Working | Windows Terminal |
| Termux (Android) | ✅ Working | ARM builds supported, optimal sizing adjusted |
| WSL | ✅ Working | Both WSL1 and WSL2 |
| BSD Systems | ✅ Working | Tested on FreeBSD |
Terminal Requirements:
-
At least 16 color support
-
Minimum 80x25 resolution
Aspect Ratio Note:
🛠️ Building from Source
-
Requires a C compiler (gcc, clang, or tcc)
-
Run:
The script lets you choose between:
Debug build (with logging)
Release build (optimized, smaller binary)
🔧 Advanced Builds
🙌 Contributing
-
Fork the repo
-
Create a branch: git checkout -b feature/your-feature
-
Commit your changes: git commit -am 'Add some feature'
-
Push the branch: git push origin feature/your-feature
-
Open a pull request
🌟 Highlights
📦 Portable: Single binary (~150 KB for ARM64)
⚡ Fast: Runs even on low-end machines
🌍 Universal: Works anywhere a C compiler is available
📫 Contact
If you have questions, reach me at: 📧 [email protected]
.png)


