VS Code Extensions
Image Converter for Embedded

Image Converter for Embedded

by Novatool

Convert images to embedded display formats (B&W, RGBA8888, RGBA4444, RGB565, ...) as .bin or C arrays. Includes a rich webview and Explorer context-menu commands.

Downloads

5

Rating

— (0)

Version

0.1.0

Last updated

Jul 13, 2026

A VS Code extension that converts images into embedded-display pixel formats and exports them as raw binary (.bin) or C source arrays (.c).

Ported from the image-converter tool in the novatool-next web app.

Features

  • Rich webview panel — the original web UI (upload, preview, format legend, ZIP option, help). Run Image Converter: Open Panel from the Command Palette.
  • Explorer context menu — right-click one or more image files → Convert to Embedded Format… → pick a format and output type. Results are written next to each source file.

Supported formats

Group Formats
Black & White bw (1-bit), bw4bit, bw8bit (grayscale)
32-bit (8888) rgba8888, argb8888, bgra8888, abgr8888
16-bit (4444) rgba4444, argb4444, bgra4444, abgr4444
16-bit (565) rgb565, bgr565 (little-endian)

Output types

  • Binary (.bin) — raw packed pixel bytes.
  • C Array (.c) — const unsigned char <name>_data[] plus width/height/format.

Development

npm install
npm run build      # builds dist/extension.js + media/webview.{js,css}
npm run watch      # incremental rebuild for F5 debugging

Press F5 in VS Code to launch the Extension Development Host.

Settings

  • imageConverter.defaultFormat — default format for the context-menu command.
  • imageConverter.defaultOutput — binary or c-array.
  • imageConverter.bwThreshold — 0–255 threshold for 1-bit black & white.

Related extensions