Skip to content
image-fetcher logo

Image Fetcher Skill

image-fetcher

Fetch and download images from the internet in various formats (JPG, PNG, GIF, WebP, BMP, SVG, etc.). Use when users ask to download images, fetch images from URLs, save images from the web, or get images for embedding in documents or chats. Supports single and batch downloads with automatic form...

SKILL.md

Full skill instructions

Image Fetcher Skill

This skill enables Claude to fetch and download images from the internet with support for multiple image formats and batch downloading capabilities.

When to Use This Skill

Use this skill when the user requests:

  • Downloading images from specific URLs
  • Fetching images from the web to embed in documents
  • Saving images locally from internet sources
  • Batch downloading multiple images
  • Converting or processing images that need to be downloaded first

Supported Image Formats

The skill automatically detects and handles these formats:

  • JPG/​JPEG
  • PNG
  • GIF
  • WebP
  • BMP
  • SVG
  • ICO
  • TIFF/​TIF

Core Workflows

Single Image Download

To download a single image from a URL:

python scripts/​fetch_image.py <image_url> [output_directory] [filename]

Parameters:

  • image_url (required): URL of the image to download
  • output_directory (optional): Directory to save the image (defaults to current directory)
  • filename (optional): Custom filename for the saved image (defaults to URL filename)

Examples:

# Basic download to current directory
python scripts/​fetch_image.py https://example.com/​photo.jpg

# Download to specific directory
python scripts/​fetch_image.py https://example.com/​photo.jpg ./​downloads

# Download with custom filename
python scripts/​fetch_image.py https://example.com/​photo.jpg ./​downloads myimage.jpg

Batch Image Download

To download multiple images from a list of URLs:

python scripts/​fetch_images_batch.py <urls_file> [output_directory]

Input file formats:

  1. Text file with one URL per line
  2. JSON file with array of URLs: ["url1", "url2", ...]

Examples:

# Download from text file
python scripts/​fetch_images_batch.py urls.txt

# Download to specific directory
python scripts/​fetch_images_batch.py urls.json ./​images

# Create a URL list on the fly
echo -e "https://example.com/​img1.jpg\nhttps://example.com/​img2.png" > urls.txt
python scripts/​fetch_images_batch.py urls.txt ./​downloads

The batch script creates a fetch_results.json file with detailed results for each download.

Integration with Claude Workflow

For Document Embedding

When fetching images to embed in documents (DOCX, PPTX, etc.):

  1. Download the image to a temporary location
  2. Use the returned file path to embed the image in the document
  3. Clean up temporary files if needed
# Download image
python scripts/​fetch_image.py https://example.com/​chart.png /​home/​claude/​temp

# The script outputs the full path which can be used for embedding
# Example output: /​home/​claude/​temp/​chart.png

For Chat Display

When downloading images to display in chat:

  1. Download to /​mnt/​user-data/​outputs/ directory
  2. Provide the user with a link to the downloaded image
python scripts/​fetch_image.py https://example.com/​image.jpg /​mnt/​user-data/​outputs

Search Integration

When combined with web search:

  1. Search for images using web_search tool
  2. Extract image URLs from search results
  3. Use this skill to download the images

Error Handling

The scripts handle common scenarios:

  • Invalid URLs
  • Network timeouts
  • Unsupported formats
  • Permission errors
  • Missing directories (auto-created)

Failed downloads are reported with clear error messages.

Output Information

Each successful download provides:

  • Full path to saved file
  • File size in KB
  • Content-Type from server
  • Success confirmation

Best Practices

  1. Always validate URLs before attempting download
  2. Use batch downloading for multiple images to improve efficiency
  3. Specify output directory to organize downloads properly
  4. Check file extensions - the script auto-detects format from headers if URL lacks extension
  5. Handle errors gracefully - inform users of any failed downloads

Common Use Cases

Use Case 1: Embedding web images in presentations

# User: "Add this chart to my presentation: https://data.com/​chart.png"
python scripts/​fetch_image.py https://data.com/​chart.png /​home/​claude/​temp
# Then use the path to embed in PPTX

Use Case 2: Creating image gallery from URLs

# User: "Download these product images and save them"
# Create urls.txt with image URLs
python scripts/​fetch_images_batch.py urls.txt /​mnt/​user-data/​outputs/​gallery

Use Case 3: Logo download for branding

# User: "Get the company logo from their website"
python scripts/​fetch_image.py https://company.com/​logo.svg /​home/​claude/​assets logo.svg

Technical Notes

  • Uses requests library with appropriate headers to avoid being blocked
  • Streams large files to handle memory efficiently
  • 30-second timeout for each download
  • Automatic content-type detection and extension mapping
  • Creates output directories automatically if they don't exist

More skills from majiayu000

xiaohongshu logo
majiayu000/claude-arsenal

xiaohongshu

xiaohongshu

286 148
View
agent-task-conductor logo
majiayu000/claude-skill-registry

agent-task-conductor

Conduct multi-agent task orchestration and workflow coordination.

663 1
View
conductor-setup logo
majiayu000/claude-skill-registry

conductor-setup

Initialize project with Conductor artifacts (product definition,

663 1
View
animation-designer logo
majiayu000/claude-skill-registry

animation-designer

Expert in web animations, transitions, and motion design using Framer Motion and CSS

663 1
View
diagramming logo
majiayu000/claude-skill-registry

diagramming

Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...

663 1
View
h3-pg logo
majiayu000/claude-skill-registry-data

h3-pg

PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.

23 1
View
conductor-development logo
majiayu000/claude-skill-registry

conductor-development

Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...

663 1
View
conductor-status logo
majiayu000/claude-skill-registry

conductor-status

Display project status, active tracks, and next actions

663 1
View
dockerization logo
majiayu000/claude-skill-registry

dockerization

Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.

663 1
View

Popular AI tools

Kaiber logo
Video

Kaiber

Generate, edit, and beat-sync AI video with leading models in one workspace.

Paid
View
Vimcal logo
Productivity

Vimcal

The world's fastest calendar for remote work

Free
View

Transform Your Design with AI Designer by ImgCreator.ai

Freemium
View
Akool AI logo
Content & writing

Akool AI

Revolutionizing Video Production with AI-Powered Creativity

Paid
View

Extend an image past the frame and let AI fill the new aspect ratio.

Freemium
View
StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
C

ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.

Freemium
View
Opus Clip logo
Coding & apps

Opus Clip

Opus.ai: Revolutionize Your Web Experience

Free
View