Extract embedded preview images (PNG & QOI) from PrusaSlicer G-code and BGCode files.
Visit: https://unusualvibes.github.io/prusa-modelpreview/
- Dual Format Support: Automatically detects and parses both G-code (text) and BGCode (binary) files
- Multiple Image Formats: Extracts PNG images and decodes QOI format thumbnails
- Drag & Drop: Simply drag your
.gcodeor.bgcodefile onto the page - Browser-Based: No uploads, no servers - everything runs locally in your browser
- Download Extracted Images: Save preview images to your computer
- Open the application in your browser
- Drag and drop a
.gcodeor.bgcodefile onto the drop zone (or click to browse) - View the extracted preview images
- Download any images you want to save
- G-code files (
.gcode): Text-based files with base64-encoded PNG thumbnails - BGCode files (
.bgcode): Binary files with embedded PNG or QOI images - Works with files exported from PrusaSlicer
The application searches for embedded preview images in two ways:
- G-code Format: Looks for base64-encoded thumbnails in comment blocks (
; thumbnail begin/; thumbnail end) - BGCode Format: Scans binary data for PNG signatures and QOI image headers
All processing happens in your browser - your files never leave your computer.
- Pure HTML/CSS/JavaScript - no dependencies
- Includes QOI image decoder
- PNG detection using magic bytes (89 50 4E 47)
- QOI detection using magic bytes (71 6F 69 66)
- Canvas-based QOI to PNG conversion
This project is provided as-is.