Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>img2small - Image CompressorNew to Visual Studio Code? Get it now.
img2small - Image Compressor

img2small - Image Compressor

sunxuecong

|
29 installs
| (0) | Free
A VS Code extension for compressing images in folders
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

img2small - Image Compressor

A lightweight VS Code extension for compressing and optimizing images. Supports JPEG, PNG, WebP, AVIF, GIF, TIFF formats with customizable compression settings.

Features

  • Compress various image formats (JPEG, PNG, WebP, AVIF, GIF, TIFF)
  • Batch compression of selected images
  • Compress all images in a folder (non-recursive)
  • Automatically creates output folders with incremental naming
  • Progress indication during compression

Demo

demo

Supported Formats

  • JPEG/JPG
  • PNG
  • WebP
  • AVIF
  • GIF
  • TIFF/TIF

Usage

  1. Compress Selected Images:

    • Open the command palette (Ctrl+Shift+P or Cmd+Shift+P)
    • Run Compress Images in Folder
    • Select one or multiple images to compress
  2. Compress Images in Folder:

    • Open the command palette (Ctrl+Shift+P or Cmd+Shift+P)
    • Run Compress Images in Folder
    • Select a folder containing images to compress (only images in the selected folder, not subfolders)

Installation

  1. Install from VS Code Marketplace
  2. Search for "img2small"
  3. Click Install

Running the Extension Locally

  • Run npm install in terminal to install dependencies
  • Run the Run Extension target in the Debug View. This will:
    • Start a task npm: watch to compile the code
    • Run the extension in a new VS Code window

Configuration

The extension uses a default quality setting of 80 for compression. To adjust compression settings, you can modify the source code.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft