image-search
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
Chinese图片搜索 Skill
Image Search Skill
你是一个专业的图片素材搜索助手,负责为内容创作查找合适的配图。
You are a professional image material search assistant, responsible for finding suitable images for content creation.
核心能力
Core Capabilities
- 多维度过滤:按尺寸、颜色、类型(照片/插画/GIF)筛选
- 版权筛选:支持按授权类型过滤图片
- 自动下载:可将图片下载到本地目录
- 结构化输出:返回图片元数据便于后续处理
- Multi-dimensional filtering: Filter by size, color, type (photo/illustration/GIF)
- Copyright filtering: Support filtering images by license type
- Automatic download: Can download images to local directories
- Structured output: Return image metadata for subsequent processing
使用方式
Usage
步骤 1:运行搜索脚本
Step 1: Run the search script
bash
python scripts/image_search.py "搜索关键词" --max_results 10 --size Large参数说明:
- :搜索关键词(必填)
query - :返回的最大图片数(默认 10)
--max_results - :图片尺寸,可选
--size、Small、Medium、LargeWallpaper - :颜色过滤,如
--color、Red、Blue、GreenMonochrome - :图片类型,可选
--type、photo、clipart、gif、transparentline - :布局,可选
--layout、Square、TallWide - :版权过滤,如
--license、any、Public、ShareModify - :搜索区域(默认
--region)zh-cn - :下载图片到指定目录
--download - :输出 JSON 文件路径
--output
bash
python scripts/image_search.py "search keyword" --max_results 10 --size LargeParameter Description:
- : Search keyword (required)
query - : Maximum number of images to return (default 10)
--max_results - : Image size, optional values:
--size,Small,Medium,LargeWallpaper - : Color filtering, e.g.,
--color,Red,Blue,GreenMonochrome - : Image type, optional values:
--type,photo,clipart,gif,transparentline - : Layout, optional values:
--layout,Square,TallWide - : Copyright filtering, e.g.,
--license,any,Public,ShareModify - : Search region (default
--region)zh-cn - : Download images to the specified directory
--download - : Output JSON file path
--output
步骤 2:查看搜索结果
Step 2: View search results
脚本会输出 JSON 格式的结果:
json
{
"query": "科技插图",
"timestamp": "2026-01-21T10:30:00",
"total_results": 10,
"results": [
{
"title": "科技未来城市插图",
"image": "https://example.com/image.jpg",
"thumbnail": "https://example.com/thumb.jpg",
"url": "https://example.com/page",
"source": "example.com",
"width": 1920,
"height": 1080,
"local_path": "./images/image_001.jpg"
}
]
}The script will output results in JSON format:
json
{
"query": "technology illustration",
"timestamp": "2026-01-21T10:30:00",
"total_results": 10,
"results": [
{
"title": "Future Technology City Illustration",
"image": "https://example.com/image.jpg",
"thumbnail": "https://example.com/thumb.jpg",
"url": "https://example.com/page",
"source": "example.com",
"width": 1920,
"height": 1080,
"local_path": "./images/image_001.jpg"
}
]
}步骤 3:下载图片(可选)
Step 3: Download images (optional)
使用 参数自动下载图片到本地:
--downloadbash
python scripts/image_search.py "风景摄影" --download ./images --max_results 5下载的图片会按顺序命名:、 等。
image_001.jpgimage_002.pngUse the parameter to automatically download images to the local directory:
--downloadbash
python scripts/image_search.py "landscape photography" --download ./images --max_results 5Downloaded images will be named sequentially: , , etc.
image_001.jpgimage_002.png搜索策略
Search Strategies
关键词优化
Keyword Optimization
对于内容配图,建议使用描述性关键词:
- ❌ "AI" → 结果太泛
- ✅ "AI 机器人 未来科技 插图" → 更精准
For content images, it is recommended to use descriptive keywords:
- ❌ "AI" → Too broad results
- ✅ "AI robot future technology illustration" → More precise
尺寸选择建议
Size Selection Recommendations
| 用途 | 推荐尺寸 |
|---|---|
| 文章头图 | Large / Wallpaper |
| 正文配图 | Medium / Large |
| 缩略图 | Small / Medium |
| 横幅 Banner | Wide + Large |
| Usage | Recommended Size |
|---|---|
| Article header | Large / Wallpaper |
| Body image | Medium / Large |
| Thumbnail | Small / Medium |
| Banner | Wide + Large |
颜色搭配
Color Matching
根据文章主题选择配色:
- 科技类:Blue、Monochrome
- 自然类:Green
- 警示类:Red、Orange
- 简约风:Monochrome
Choose colors based on the article theme:
- Technology category: Blue, Monochrome
- Nature category: Green
- Warning category: Red, Orange
- Minimalist style: Monochrome
与图片处理 Skill 配合
Cooperation with Image Processing Skill
搜索到图片后,可以使用 图片处理 Skill 进行:
- 添加文字标注
- 插入配文(底部边框/内部贴纸)
- 调整尺寸
After searching for images, you can use the Image Processing Skill to:
- Add text annotations
- Insert captions (bottom border/internal stickers)
- Adjust size
注意事项
Notes
- 网络要求:需要能够访问 DuckDuckGo 图片搜索服务
- 版权合规:下载图片前请确认版权许可,商业用途需特别注意
- 下载限流:自动下载会有适当延迟,避免触发限制
- 图片有效性:部分图片 URL 可能失效,脚本会自动跳过并报告
- Network requirements: Need access to DuckDuckGo Image Search service
- Copyright compliance: Please confirm copyright permission before downloading images, especially for commercial use
- Download rate limiting: Automatic downloads will have appropriate delays to avoid triggering restrictions
- Image validity: Some image URLs may be invalid, the script will automatically skip and report them