igcmd.exe command-line tool provides powerful automation capabilities for ImageGlass, enabling you to integrate image viewing features into scripts, workflows, and system operations.
Getting Started
The igcmd tool is located in your ImageGlass installation directory (typicallyC:\Program Files\ImageGlass\).
Basic Usage
Available Commands
ImageGlass CLI provides 14 commands organized by functionality:Quick Setup & Configuration
quick-setup- Launch the quick setup wizardcheck-for-update- Check for ImageGlass updates
Wallpaper & Lock Screen
set-wallpaper- Set an image as desktop wallpaperset-lock-screen- Set an image as Windows lock screen
File Associations
set-default-viewer- Register ImageGlass as default photo viewerremove-default-viewer- Unregister ImageGlass as default photo viewer
Image Operations
export-frames- Export frames from animated imageslossless-compress- Compress images without quality lossstart-slideshow- Start a slideshow from a specific image
Customization
install-languages- Install language packsinstall-themes- Install theme packsuninstall-theme- Remove a theme pack
Performance
set-startup-boost- Enable startup boost (launch with Windows)remove-startup-boost- Disable startup boost
Global Options
These options can be used with most commands:Show UI dialogs for success/error messages
Apply settings system-wide (requires administrator privileges)
Suppress administrator permission error dialogs
Exit Codes
All igcmd commands return standard exit codes:| Code | Name | Description |
|---|---|---|
0 | Done | Command completed successfully |
1 | AdminRequired | Administrator privileges required |
2 | Error | General error occurred |
3 | Error_FileNotFound | Specified file not found |
Checking Exit Codes
Command Reference
For detailed documentation of each command, see:All Commands
Complete reference of all 14 commands
Quick Setup
Initial configuration wizard
Set Wallpaper
Desktop wallpaper management
File Associations
Default photo viewer registration
Export Frames
Extract frames from animations
Examples
Set wallpaper and check result
Install multiple themes
Set default viewer with confirmation
Error Handling
When using igcmd in scripts, always check exit codes:Configuration Files
Some commands can be configured using ImageGlass configuration files:- User settings:
%APPDATA%\ImageGlass\Config\ - Machine settings:
%ProgramData%\ImageGlass\Config\
--per-machine flag to modify system-wide settings (requires admin rights).