Skip to main content
The export-frames command extracts individual frames from animated images (GIF, WebP, APNG) and multi-frame files (TIFF, ICO) into separate image files.

Syntax

Parameters

string
required
Full path to the animated or multi-frame image fileSupported formats:
  • Animated GIF (.gif)
  • Animated WebP (.webp)
  • Animated PNG/APNG (.png)
  • Multi-frame TIFF (.tiff, .tif)
  • Multi-icon ICO (.ico)

Exit Codes

Behavior

Interactive Folder Selection

When you run the command:
  1. File validation - Checks if the specified file exists
  2. Folder picker - Opens a dialog to select the destination folder
  3. Frame extraction - Extracts all frames to the selected folder
  4. Progress display - Shows extraction progress
  5. Completion - Displays summary of extracted frames

Output Files

Extracted frames are saved as:
  • Naming pattern: frame_001.png, frame_002.png, etc.
  • Format: PNG (preserves transparency)
  • Numbering: Sequential, zero-padded
  • Location: User-selected destination folder

Examples

Basic Usage

Opens folder picker, then extracts all frames from the GIF file.

Export Animated WebP

Extracts frames from an animated WebP file.

Export APNG Frames

Extracts frames if the PNG file is animated (APNG format).

Multi-Frame TIFF

Extracts individual pages from a multi-page TIFF file.

Advanced Usage

Batch Frame Extraction

PowerShell Batch Extraction

Error Handling

PowerShell with Error Handling

Supported File Formats

Animated GIF

  • Format: Graphics Interchange Format
  • Typical use: Web animations, simple animations
  • Frames: Unlimited
  • Output: Individual PNG files

Animated WebP

  • Format: WebP with animation
  • Typical use: Modern web animations, high-quality animations
  • Frames: Unlimited
  • Output: PNG files with alpha channel

Animated PNG (APNG)

  • Format: Animated Portable Network Graphics
  • Typical use: High-quality animations with transparency
  • Frames: Unlimited
  • Output: PNG files preserving transparency

Multi-Frame TIFF

  • Format: Tagged Image File Format
  • Typical use: Scanned documents, multi-page images
  • Frames: Multiple pages
  • Output: PNG files (one per page)

Multi-Resolution ICO

  • Format: Windows Icon
  • Typical use: Application icons with multiple sizes
  • Frames: Multiple resolutions (16x16, 32x32, 48x48, etc.)
  • Output: PNG files (one per resolution)

Use Cases

Extract GIF Frames for Editing

Analyze Animation Sequences

Convert Animation to Image Sequence

Extract Icon Sizes

Quality Comparison

Output Characteristics

Frame Naming

Extracted frames follow this pattern:
  • Format: PNG (lossless)
  • Padding: Zero-padded numbers (001, 002, etc.)
  • Transparency: Preserved from source
  • Color depth: Preserved from source

Frame Quality

  • No quality loss - Lossless PNG format
  • Transparency preserved - Alpha channel maintained
  • Exact pixels - Pixel-perfect extraction
  • Original resolution - No scaling applied

Destination Folder

The folder picker allows you to:
  • Select existing folders
  • Create new folders
  • Navigate to any location
  • See pinned places (Quick Access)

Limitations

Interactive Requirement

For automated workflows, you may need to:
  • Pre-create destination folders
  • Use alternative frame extraction tools
  • Develop custom automation scripts

File Size Considerations

Extracting frames from large animations:
  • High frame count - Can generate hundreds of files
  • Disk space - PNG files may require significant storage
  • Processing time - Large files take longer to process
Example:
  • 100-frame GIF (1920x1080) → ~200MB of PNG files
  • 500-frame animation → ~1GB of PNG files

Troubleshooting

File Not Found Error

Invalid Format Error

Ensure the file is actually animated:
  • Static images - Cannot extract frames from single-frame images
  • Corrupt files - Damaged files may fail to extract
  • Unsupported formats - Some formats are not supported

Exit Code 2 Troubleshooting

If you receive exit code 2:
  1. Verify the file exists
  2. Check file is not corrupted
  3. Ensure file format is supported
  4. Confirm file contains multiple frames
  5. Try opening the file in ImageGlass first

lossless-compress

Compress extracted frames to reduce file size:

start-slideshow

View extracted frames as a slideshow:

See Also