Convert GitHub markdown image uploads to HTML <img> tags with customizable width; supports drag-drop, paste, and attachment button uploads.
A Tampermonkey userscript that automatically converts uploaded image Markdown in GitHub Pull Requests into an HTML <img> tag with a customizable width.
This tool supports all GitHub image upload methods — including drag-and-drop, paste, and the attachment button — and ensures consistent visual layout for embedded images.
🖼️ Automatically converts this:

into:
<img src="https://github.com/user-attachments/assets/..." alt="alt text" width="300">
✅ Supports all image upload methods:
🔁 Converts image Markdown to HTML <img> on-the-fly — no need to manually edit it.
⚙️ Customizable width via Tampermonkey menu
🧠 Intelligent detection even when GitHub silently updates the comment box after uploads
Install Tampermonkey:
Install the script:
Your setting is stored and applied persistently across sessions.
Pull requests are welcomed for:
MIT License — see LICENSE
Before Upload:
After Upload (Automatically):