Fetch and download images from the internet in various formats (JPG, PNG, GIF, WebP, BMP, SVG, etc.)...
This skill enables Claude to fetch and download images from the internet with support for multiple image formats and batch downloading capabilities.
Use this skill when the user requests:
The skill automatically detects and handles these formats:
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 downloadoutput_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
To download multiple images from a list of URLs:
python scripts/fetch_images_batch.py <urls_file> [output_directory]
Input file formats:
["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.
When fetching images to embed in documents (DOCX, PPTX, etc.):
# 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
When downloading images to display in chat:
/mnt/user-data/outputs/ directorypython scripts/fetch_image.py https://example.com/image.jpg /mnt/user-data/outputs
When combined with web search:
The scripts handle common scenarios:
Failed downloads are reported with clear error messages.
Each successful download provides:
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
requests library with appropriate headers to avoid being blocked