Avif Preview


Avif Preview — Preview AVIF images in VS Code with gallery, zoom, and pan.
✨ Features
- 🖼 AVIF Preview — Open .avif files in a webview.
- 🖼 Gallery Support — View multiple images from a folder.
- 🔍 Zoom & Pan — Scroll to zoom, drag to pan.
- 🛠 Toolbar & Controls — Quick zoom, reset, fit, and close.
- 📊 Metadata — Shows scale, dimensions, and file size.
- 🛡️ Secure Rendering — Safe Webview with theme adaptation and CSP.
🛠 Installation
- Open VS Code → Extensions (
Ctrl+Shift+X / Cmd+Shift+X).
- Search for Avif Preview and click Install.
🎨 Usage
To preview an AVIF file:
Right-click an .avif file in the Explorer and select Open AVIF Preview.
Select a single AVIF file, multiple files, or a folder — all selected images will be added to the gallery.
Scroll with the mouse wheel to zoom in/out.
Drag images to pan when zoomed.
Use the toolbar buttons for quick actions:
- Zoom In
- Zoom Out
- Reset Zoom
- Fit Image(s) to Screen
- Close Preview
Metadata panel shows scale, dimensions, and file size.
Keyboard Shortcuts — All toolbar actions can also be controlled via keyboard:
Ctrl+Alt+V (Windows) / Cmd+Alt+V (Mac) — Open .avif file.
These shortcuts work when an AVIF file is selected in the Explorer.
+ / = — Zoom In
- — Zoom Out
0 — Reset Zoom
f — Fit Image(s) to Screen
Escape — Close Preview
🧩 Contributing
Found a bug or want to suggest an improvement?
Open an issue or pull request on GitHub.
👤 Author

Andriy Ovcharov
📧 ovcharovcoder@gmail.com
☕ Support
If you enjoy DevFoundry Umber, consider supporting the author:
Donate via PayPal
🪪 License
Released under the MIT License
| |