Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>imagerNew to Visual Studio Code? Get it now.
imager

imager

Michal Zaperty

|
12 installs
| (0) | Free
Convert images to PNG & remove or swap backgrounds right from VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

imager

VS Code extension to:

  • Convert images (jpg/jpeg/png/bmp) to PNG using Jimp
  • Remove backgrounds from images via remove.bg API (requires free remove.bg API key)
  • Refine background removal (erase/restore brush) and/or add custom background image

Requirements

  • For users: Internet connection (for remove.bg API). No local dependency install is required.
  • For contributors: Node.js (to build the extension locally).
  • remove.bg API key for background removal (free tier available): https://www.remove.bg/api

Setup

Simply install from VS Code marketplace OR

  1. Install dependencies:
    npm install
    
  2. In VS Code, open this folder and press F5 (Run Extension) to launch a new Extension Development Host.

Usage

  • Explorer context menu:
    • Right-click an image file → imager →
      • "Convert to PNG"
      • "Remove Background"
  • Command Palette:
    • "imager: Convert to PNG"
    • "imager: Remove Background"
    • If no file is selected, a file picker will appear.

Converted and background-removed images are written next to the original file. The editor saves as a PNG you choose via Save dialog.

Settings

  • imageTools.removeBgApiKey (string): remove.bg API key. Required for background removal.
  • imageTools.convert.overwrite (boolean, default false): If true, overwrite existing .png; otherwise write to a suffixed filename.
  • imageTools.removeBg.outputSuffix (string, default -no-bg): Suffix used for output filename of background-removed images.
  • imageTools.network.proxy (string): Optional HTTP proxy like http://user:pass@host:port used for remove.bg requests.

Notes

  • Conversion uses Jimp, supporting JPEG/PNG/BMP inputs.
  • WebP, TIFF and GIF are not currently supported for the Convert to PNG command.
  • Background removal uses the official remove.bg REST API and returns a PNG with transparent background (WebP input is supported here).

Troubleshooting

  • "API key not set": Configure imageTools.removeBgApiKey in VS Code Settings.
  • Corporate proxy: set imageTools.network.proxy.
  • Permission issues writing files: ensure you have write permissions to the directory.

License

MIT

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