Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Compress ImageNew to Visual Studio Code? Get it now.
Compress Image

Compress Image

Serbyte Development

|
1 install
| (0) | Free
Lossless image compression + simple resizing in VS Code and Cursor.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Compress Image

CI License: MIT

Compress and resize images directly from the VS Code Explorer.

Compress Image Explorer menu

How it works

Right-click an image in the VS Code Explorer and open Compress Image. From there you can compress the image or resize it to 256px, 512px, or 1080px wide.

Resize keeps the original aspect ratio, never crops or stretches the image, and never makes a small image larger. After resizing, the image is compressed automatically.

Compression only replaces the original when the result is smaller and passes validation. If it cannot make the image smaller safely, the original is left alone.

Everything runs locally. Your images never leave your machine.

Compress Image result notification

Supported formats

Format Compress Resize
PNG Yes Yes
APNG Yes No
JPEG / JPG Yes Yes
WebP Static images Static images
GIF Yes Yes, including animation
AVIF Static images Static images

Animated WebP, APNG resizing, AVIF image sequences, and multi-image AVIF files are not supported. HEIC, TIFF, BMP, SVG, and other formats are also currently unsupported.

Platforms

Compress Image supports macOS on Apple Silicon and Intel, Linux on arm64 and x64 using glibc, and Windows on x64. VS Code 1.96.0 or newer is required.

Remote SSH, WSL, and dev containers work when the matching platform version of the extension is installed in the remote environment.

Support

Found a bug or an image that does not behave as expected? Open an issue in the GitHub repository. See SUPPORT.md for details that can help reproduce image problems.

License

Compress Image is MIT licensed. Bundled image tools and libraries retain their own licenses; see THIRD_PARTY_NOTICES.md.

Developed and maintained by Serbyte Development.

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