EXR and KTX Preview for VSCode
May 16, 2025 ยท View on GitHub
This VSCode extension allows you to preview EXR (OpenEXR) and KTX (Khronos Texture) images directly in VSCode using OpenImageIO's command line tools.

Prerequisites
- VSCode or Cursor
- OpenImageIO installed with command line tools
- KTX-Software installed with command line tools
Installation
- Clone this repository
- Run
pnpm installto install dependencies - Run
pnpm compileto build the extension - Press F5 in VSCode to start debugging and test the extension
Can be installed from the marketplace as well: https://marketplace.visualstudio.com/items?itemName=mateh.exr-preview
Usage
- Open an EXR or KTX file in VSCode
- The file will automatically open in the EXR or KTX Preview editor
- The preview will be generated using OpenImageIO and displayed in VSCode
Features
- Automatic preview generation for EXR and KTX files
- Clean and simple interface
- Uses OpenImageIO for high-quality previews
Requirements
- VSCode 1.60.0 or higher
- OpenImageIO installed and available in system PATH
Known Issues
- The preview is generated as a temporary PNG file and then displayed
- Large EXR files might take a moment to generate the preview
Contributing
Feel free to open issues or submit pull requests for any improvements.
License
MIT