Compress ImageCompress and resize images directly from the VS Code Explorer.
How it worksRight-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.
Supported formats
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. PlatformsCompress 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. SupportFound 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. LicenseCompress Image is MIT licensed. Bundled image tools and libraries retain their own licenses; see THIRD_PARTY_NOTICES.md. Developed and maintained by Serbyte Development. |

