📊 Data Processing

Batch Image Processing

Batch process images with Cowork: compress, crop, watermark, and convert formats

★☆☆ Beginner 5-15 min January 11, 2025

Overview

Need to process lots of images? Whether it's compressing file size, adding watermarks, or converting formats, Cowork can batch process them all without learning complex image editing software.

Use Cases

  • Batch compress images before uploading
  • Add watermarks to product images
  • Uniformly resize images
  • Batch convert image formats
  • Remove image backgrounds
  • Batch add borders/filters

Steps

Step 1: Specify Images and Processing Requirements

Please process all images in the ~/Desktop/ProductImages/ folder:
- Compress to under 500KB
- Resize to 800x800 pixels
- Add company logo watermark (bottom right corner)
- Output to ~/Desktop/ProductImages_Processed/

Step 2: Preview Processing Plan

Claude will analyze the images and display the processing plan:

Image Processing Plan:

Source folder: ~/Desktop/ProductImages/
Output folder: ~/Desktop/ProductImages_Processed/
Image count: 45

Processing steps:
1. Resize → 800x800px (maintain aspect ratio, white fill)
2. Compress quality → Target under 500KB
3. Add watermark → logo.png bottom right, 30% opacity
4. Output format → JPEG

Estimated time: About 2 minutes

Confirm execution?

Step 3: Execute Processing

After confirmation, Claude will process each image and show progress:

Processing: [████████████░░░░░░░░] 60% (27/45)

✓ product_001.jpg → 2.3MB → 420KB (-82%)
✓ product_002.jpg → 1.8MB → 385KB (-79%)
✓ product_003.jpg → 3.1MB → 498KB (-84%)
...

Step 4: View Results

Summary displayed after processing is complete:

✅ Processing complete!

Statistics:
- Successfully processed: 45 images
- Failed: 0 images
- Original total size: 98.5 MB
- Processed total size: 18.2 MB
- Space saved: 81.5%

Output location: ~/Desktop/ProductImages_Processed/

Keep Originals: By default, Cowork outputs to a new folder and won't overwrite original images. If you choose to modify in place, please backup important images first.

Common Processing Needs

Batch Compression

Compress all images in this folder to under 200KB while maintaining clarity as much as possible

Add Watermark

Add text watermark "Copyright Reserved" to all images, positioned at bottom right, semi-transparent

Format Conversion

Convert all PNG images to JPEG format and delete the original PNG files

Resize

Crop all images to 16:9 aspect ratio, resolution 1920x1080

Remove Background

Batch remove backgrounds from product images and replace with pure white background

Batch Filters

Apply vintage filter effect to all these photos

Tip: You can combine multiple processing steps, such as "compress first, then add watermark, finally convert format," and Claude will execute them in sequence.

Supported Formats

Input Format Output Format
JPEG/JPG JPEG/JPG
PNG PNG
WebP WebP
GIF GIF
BMP BMP
TIFF TIFF
HEIC JPEG (converted)

Advanced Features

Smart Compression

Smart compress images to find the optimal balance between file size and image quality,
virtually undetectable to the human eye

Batch OCR

Recognize text in these screenshots and save as text files with matching names

Image Info Extraction

List shooting date, camera model, and GPS location for all images

FAQ

Q: Will image quality degrade after processing?

A: Compression will slightly reduce quality, but Claude prioritizes visual appearance. You can specify "high quality mode" to minimize quality loss.

Q: Can RAW format be processed?

A: Basic support is available. For complex RAW processing, professional software is recommended.

Q: What determines processing speed?

A: Mainly depends on image count, resolution, and processing complexity. Typically 1-3 images per second for normal-sized images.

Real Case

"E-commerce requires processing lots of product images. I used to write action scripts for Photoshop batch processing. Now I just tell Cowork what effect I want, and hundreds of images are processed in minutes." — From an e-commerce seller