Image Asset Manager

A beautiful and efficient VS Code extension for managing image assets in your workspace. Scan, preview, search, and organize all your image assets (SVG, PNG, JPG, WebP, GIF, ICO, BMP) with an intuitive card-based gallery interface.
✨ Features
- 🖼️ Multi-Format Support: Scans SVG, PNG, JPG, WebP, GIF, ICO, and BMP files
- 🔍 Smart Scanning: Automatically discovers all image assets in your workspace
- 🎨 Beautiful Gallery: Card-based preview with hover effects and zoom overlay for images
- 🔎 Powerful Search: Search assets by name or file path with real-time filtering
- 🏷️ Format Filter: Toggle individual image formats with clickable chip buttons
- 📁 Directory Tree Filter: Filter assets by directory with a searchable tree dropdown — collapsible nodes, connector lines, asset count badges, and parent directories include all subdirectories
- 🖼️ Image Preview Modal: Click any image card to open a full-size preview with file details
- 📋 Quick Actions:
- Copy asset name to clipboard
- Copy import code with proper relative path
- Open file in editor
- 📊 Asset Information: Displays file name, path, dimensions, and file size
- ⚡ Fast Performance: Optimized scanning with incremental grid updates
- 🌙 Dark Mode Support: Seamlessly adapts to VS Code themes using CSS variables
🚀 Installation
From VS Code Marketplace
- Open VS Code
- Press
Ctrl+Shift+X (Mac: Cmd+Shift+X) to open Extensions
- Search for "Image Asset Manager"
- Click Install
Manual Installation
- Download the latest
.vsix file from the Releases page
- Open VS Code
- Press
Ctrl+Shift+P (Mac: Cmd+Shift+P)
- Type "Extensions: Install from VSIX..."
- Select the downloaded file
📖 Usage
Opening the Extension
- Keyboard Shortcut: Press
Ctrl+Alt+S (Mac: Cmd+Alt+S)
- Command Palette: Press
Ctrl+Shift+P, type "Image Asset Manager"
Features
Searching Assets
Use the search box to filter assets by name or file path. The search is case-insensitive and updates in real-time as you type.
Click the format chips (SVG, PNG, JPG, etc.) to toggle which image formats are displayed. The view updates immediately on each click.
Filtering by Directory
Open the directory dropdown to browse your folders as a collapsible tree with asset counts per directory. Selecting a parent directory shows assets from all of its subdirectories. Type in the dropdown's search box to quickly locate a directory by its full path.
Previewing Images
Click any non-SVG image card to open a full-size preview modal. The modal shows the full filename (with extension) and file size. Press Escape, click the backdrop, or click the ✕ button to close.
Asset Actions
Each card has quick action buttons (visible on hover):
- Copy Name: Copies the asset name to clipboard
- Copy Import: Copies a ready-to-use import statement with relative path
- Open File: Opens the asset file in the editor
⚙️ Configuration
You can customize the extension behavior through VS Code settings:
| Setting |
Type |
Default |
Description |
svgIconManager.ignorePatterns |
array |
["node_modules", ".git", "out", "dist", "build", "coverage"] |
Directory patterns to ignore (supports glob like **/test/**) |
svgIconManager.iconSize |
number |
80 |
Size of asset preview in pixels (48-128) |
Example Configuration
{
"svgIconManager.ignorePatterns": [
"node_modules",
".git",
"out",
"dist",
"build",
"coverage",
".next",
".nuxt",
"**/test/**"
],
"svgIconManager.iconSize": 96
}
🛠️ Development
Prerequisites
- Node.js 18 or higher
- npm
- VS Code
Building
# Clone the repository
git clone https://github.com/miffy-w/svg-icon-manager.git
cd svg-icon-manager
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Run in development mode
# Open the project in VS Code and press F5
Publishing
# Package the extension
npm run package
# Publish to VS Code Marketplace
npm run publish
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature)
- Commit your changes (
git commit -m 'Add some AmazingFeature')
- Push to the branch (
git push origin feature/AmazingFeature)
- Open a Pull Request
📝 License
This project is licensed under the MIT License - see the LICENSE file for details.
🙏 Acknowledgments
📧 Support
🔗 Links
Made with ❤️ by miffy-w