Skip to main content
Complete reference documentation for all 14 igcmd commands.

Quick Setup & Updates

quick-setup

Launch the ImageGlass quick setup wizard for initial configuration.
Parameters: None Exit Codes:
  • 0 - Setup completed successfully
  • 2 - Error during setup
Example:

check-for-update

Check for available ImageGlass updates and display the update dialog.
Parameters: None Exit Codes:
  • 0 - Check completed successfully
  • 2 - Error checking for updates
Example:

Wallpaper & Lock Screen

set-wallpaper

Set an image as the Windows desktop wallpaper.
string
required
Full path to the image file
enum
required
Wallpaper display style. Options:
  • Centered (0) - Center image on screen
  • Stretched (1) - Stretch to fill screen
  • Tiled (2) - Tile image across screen
  • Current (-1) - Use current Windows wallpaper style
Exit Codes:
  • 0 - Wallpaper set successfully
  • 1 - Administrator privileges required
  • 2 - Error setting wallpaper (invalid style or file error)
Examples:
See also: Set Wallpaper Guide

set-lock-screen

Set an image as the Windows lock screen background.
string
required
Full path to the image file
Exit Codes:
  • 0 - Lock screen set successfully
  • 1 - Administrator privileges required
  • 2 - Error setting lock screen
Example:

File Associations

set-default-viewer

Register ImageGlass as the default photo viewer for specified file extensions.
string
default:"all supported formats"
Semicolon-separated list of extensions. Example: .jpg;.png;.gifIf omitted, all supported image formats are registered.
flag
Apply system-wide (requires administrator privileges)
flag
Show confirmation dialog on success
Exit Codes:
  • 0 - Registration successful
  • 1 - Administrator privileges required (with —per-machine)
  • 2 - Error during registration
Examples:
See also: File Associations Guide

remove-default-viewer

Unregister ImageGlass as the default photo viewer for specified file extensions.
string
default:"all registered formats"
Semicolon-separated list of extensions. Example: .jpg;.png;.gifIf omitted, all registered formats are unregistered.
flag
Apply system-wide (requires administrator privileges)
flag
Show confirmation dialog on success
Exit Codes:
  • 0 - Unregistration successful
  • 1 - Administrator privileges required (with —per-machine)
  • 2 - Error during unregistration
Examples:
See also: File Associations Guide

Image Operations

export-frames

Export individual frames from animated images (GIF, WebP, APNG, etc.).
string
required
Full path to the animated image file
Behavior:
  • Opens a folder picker dialog to select destination
  • Extracts all frames to the selected folder
  • Frames are numbered sequentially
Exit Codes:
  • 0 - Frames exported successfully
  • 2 - Error (file not found or invalid format)
Examples:
Supported formats:
  • Animated GIF
  • Animated WebP
  • Animated PNG (APNG)
  • Multi-frame TIFF
See also: Export Frames Guide

lossless-compress

Perform lossless compression on an image to reduce file size without quality loss.
string
required
Full path to the image file to compress
Behavior:
  • Compresses the image file in-place
  • No quality loss (lossless compression)
  • Original file is overwritten
Exit Codes:
  • 0 - Compression successful
  • 1 - Administrator privileges required
  • 2 - Error during compression
Example:
Note: Make a backup before compressing if you want to preserve the original file.

start-slideshow

Start a slideshow from a specific image file.
string
required
Full path to the starting image file
Behavior:
  • Opens fullscreen slideshow viewer
  • Starts with the specified image
  • Includes all images in the same folder
Exit Codes:
  • 0 - Slideshow completed
  • 2 - Error (file not found or invalid path)
Example:

Customization

install-languages

Install one or more language pack files.
string
required
Path to language pack file(s) (.iglang files)Multiple files can be specified separated by spaces
Exit Codes:
  • 0 - Language pack(s) installed successfully
  • 1 - Administrator privileges required
  • 2 - Error during installation
Examples:
Installation location:
  • Language packs are installed to the ImageGlass languages directory
  • After installation, select the language in ImageGlass settings

install-themes

Install one or more theme pack files.
string
required
Path to theme pack file(s) (.igtheme files)Multiple files can be specified separated by spaces
Exit Codes:
  • 0 - Theme pack(s) installed successfully
  • 1 - Administrator privileges required
  • 2 - Error during installation
Examples:
Installation location:
  • User themes: %APPDATA%\ImageGlass\Themes\
  • After installation, select the theme in ImageGlass settings

uninstall-theme

Uninstall a theme pack by removing its directory.
string
required
Full path to the theme directory to remove
Exit Codes:
  • 0 - Theme uninstalled successfully
  • 2 - Error (theme not found or is default theme)
Example:
Note: The default theme cannot be uninstalled.

Performance

set-startup-boost

Enable startup boost to launch ImageGlass with Windows for faster subsequent launches.
flag
Show confirmation dialog on success
Exit Codes:
  • 0 - Startup boost enabled successfully
  • 1 - Administrator privileges required
  • 2 - Error enabling startup boost
Examples:
Behavior:
  • Adds ImageGlass to Windows startup
  • Runs in background to reduce launch time
  • Does not open a window on startup

remove-startup-boost

Disable startup boost and remove ImageGlass from Windows startup.
flag
Show confirmation dialog on success
Exit Codes:
  • 0 - Startup boost disabled successfully
  • 1 - Administrator privileges required
  • 2 - Error disabling startup boost
Examples:

Global Options

These options can be combined with most commands:

—ui

Show UI dialogs for success and error messages.

—per-machine

Apply settings system-wide instead of current user only. Requires administrator privileges.

—hide-admin-error-ui

Suppress error dialogs when administrator privileges are required.

Exit Code Handling

All commands return standard exit codes that can be checked in scripts:

See Also