/Paste-Text-From-Image

A VSCode extension that allows you to extract text from images directly from your clipboard and paste it into your editor with a simple right-click. Perfect for quickly converting visual content into editable text.

Primary LanguageTypeScriptMIT LicenseMIT

Sponsor Donate

Windmillcode Paste Text From Image

Demo GIF

Overview

Do you often find yourself needing to extract text from images, screenshots, or other visual content while working on your projects? The "Windmillcode Paste Text From Image" extension is designed to make this process seamless and efficient by allowing you to extract and paste text from images directly into your VSCode editor.

Usage

  1. Copy an image to your clipboard:

    • Take a screenshot or copy an image from any source.
  2. Paste the image as text in VSCode:

    • Right-click in your editor where you want to paste the text.
    • Select Windmillcode: Paste Image as Text from the context menu.
  3. The extension will extract the text from the image using Tesseract.js and insert it into your active editor at the current cursor position.

Commands

Title Command Description
Windmillcode Paste Image as Text windmillcode-paste-text-from-image.pasteImageAsText Extracts text from the image in your clipboard and pastes it into the active editor.

Contributing

Contributions are welcome! we need help on accurate results when greater than ~200 characters are in the image the results become very poor

Caveat

if the result is bad you must zoom into the image to get better results. For large texts break into smaller sections for better results

Roadmap

  • investigate image optimization solutions for better overall results

License

This extension is licensed under the MIT License. See the LICENSE file for details.