Skip to content

Add image URL display with copy button to alt text extractor#106

Merged
simonw merged 2 commits intomainfrom
copilot/show-image-url-in-extractor
Nov 13, 2025
Merged

Add image URL display with copy button to alt text extractor#106
simonw merged 2 commits intomainfrom
copilot/show-image-url-in-extractor

Conversation

Copy link
Contributor

Copilot AI commented Nov 13, 2025

The alt text extractor now displays each image's URL alongside its alt text, with a dedicated copy button for quick URL extraction.

Changes

  • Added "Image URL" section below alt text with URL display and copy button
  • Styled URL display to match existing alt text section with word-break: break-all for long URLs
  • Implemented copyUrl() function with clipboard API and fallback for older browsers
  • Copy button shows "Copied!" feedback for 2 seconds after successful copy

Screenshot

Image URL section showing URL with copy button

Each extracted image now shows:

  • Image preview
  • Alt text with copy button
  • Image URL with copy button (new)
Original prompt

This section details on the original issue you should resolve

<issue_title>Show image URL in alt text extractor tool</issue_title>
<issue_description>Each image should have a URL shown with a copy button.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: simonw <9599+simonw@users.noreply.github.com>
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Nov 13, 2025

Deploying tools with  Cloudflare Pages  Cloudflare Pages

Latest commit: bcab89b
Status: ✅  Deploy successful!
Preview URL: https://10e1f4f1.tools-b1q.pages.dev
Branch Preview URL: https://copilot-show-image-url-in-ex.tools-b1q.pages.dev

View logs

Copilot AI changed the title [WIP] Add image URL display with copy button in extractor Add image URL display with copy button to alt text extractor Nov 13, 2025
Copilot AI requested a review from simonw November 13, 2025 15:44
@simonw
Copy link
Owner

simonw commented Nov 13, 2025

@simonw simonw marked this pull request as ready for review November 13, 2025 15:45
@simonw simonw merged commit e468d4b into main Nov 13, 2025
4 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show image URL in alt text extractor tool

2 participants