Skip to content

A free, open-source Chrome extension that turns any image into an AI-ready prompt .

Notifications You must be signed in to change notification settings

pingan8787/image2prompt

Repository files navigation

image2prompt

🌟 Overview

image2prompt is a lightweight tool designed for creators, designers, and AI users, Used to generate Prompt words for any image on the web page with one click.
When you hover over an image on any webpage, a small icon button will appear in the bottom-right corner 👇
Click it, and the extension will automatically upload the image, generate a prompt, copy it to your clipboard, and open your preferred AI platform to reproduce the same style.

Overview

⚙️ Features

Feature Module Description
🧩 Model Selection Switch between Gemini 2.5 Flash and Zhipu GLM-4V — each keeps its own API key and model ID
🌏 Multilingual Output Generate prompts in 20 different languages
🖼️ Image Size Filter Only displays the button for images larger than the configured size (default: 256×256)
📒 Generation History View all your generated prompts anytime
🎨 Custom Platform Jump Configure the default AI platform: OpenAI / Gemini / StableDiffusion / JiMeng / Keling / Doubao / Hailuo AI / Custom
💬 Prompt Templates Edit and customize prompt generation templates to build your unique style
✍️ Custom Instructions Enable a pre-generation dialog so you can blend extra guidance into every output
🧭 Internationalized UI Easily switch between English and Chinese
🪶 Lightweight UI Inspired by shadcnUI, built with custom-drawn components and no third-party dependencies
🔓 Open Source & Free 100% open-source and completely free to use
🧮 Aspect Ratio Presets Pick cinematic ratios or add your own so every prompt respects the frame you need
🚫 Domain Filters Hide the capture button on sites you exclude so browsing stays distraction-free
🖼️ Local Uploads Drop local images directly in the settings page and generate prompts without leaving the dashboard

🌈 Installation

  1. Clone or download this repository:
git clone https://github.com/pingan8787/image2prompt.git
  1. Install the extension

After downloading the project, open the Chrome/Edge Extensions page: chrome://extensions/ / edge://extensions/ enable Developer mode, then drag the entire project folder into the page.

Alternatively, click Load unpacked, then select the project folder.

Install

🍭 Usage

After installing the extension, open the configuration page to choose your provider and set the corresponding API key:

Setting

Then, whenever you hover over an image on any webpage, you’ll see an “Edit” button at the bottom-right corner — click it to generate a prompt!

Want to blend in extra guidance (for example, “switch the background to a neon city”)? Enable Custom instructions input in Settings → Prompt Generation to open a dialog before each run and merge your tweaks with the system prompt.

Project

💬 Contact Me

Scan the WeChat QR code below to get in touch:

Image

About

A free, open-source Chrome extension that turns any image into an AI-ready prompt .

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published