本地图片管理技能,支持索引、压缩、分类、快速查找。
media/
├── images/ # 原图(保持完整画质)
│ ├── pets/
│ ├── people/
│ ├── food/
│ ├── scenery/
│ ├── receipts/
│ └── other/
├── thumbnails/ # 缩略图(快速预览)
│ ├── pets/
│ ├── people/
│ └── ...
└── index.json # 全局索引文件
python scripts/save_image.py <image_path> \
--category pets \
--tags "包子,白色,长毛" \
--description "包子坐在地上"
# 按标签查找
python scripts/search_image.py --tags "包子"
# 按类别查找
python scripts/search_image.py --category pets
# 按日期查找
python scripts/search_image.py --date 2026-03-19
# 按关键词查找(搜索 description 和 tags)
python scripts/search_image.py --keyword "白色"
python scripts/list_images.py --category pets
python scripts/list_images.py --tags "包子"
每条记录包含:
{
"id": "baozi-2026-03-19-001",
"path": "media/images/pets/baozi-2026-03-19-001.jpg",
"thumbnail": "media/thumbnails/pets/baozi-2026-03-19-001.jpg",
"category": "pets",
"tags": ["包子", "白色", "长毛"],
"description": "包子坐在地上",
"saved_at": "2026-03-19T22:33:00+08:00",
"source": "feishu",
"size_bytes": 88688,
"width": 1080,
"height": 1440
}
| 类别 | 用途 |
|---|---|
| ------ | ------ |
| pets | 宠物照片 |
| people | 人物照片 |
| food | 美食/食物 |
| scenery | 风景/地点 |
| receipts | 小票/账单 |
| other | 未分类 |
共 1 个版本