免費圖片解決方案

👤 titancheung 📦 v1.0.0 ⭐ 0.0 ⬇️ 645 下載
🎨 設計多媒體 免費 🔑 需 API Key

📖 技能介紹


name: free-image-skill description: 免費圖片解決方案 - 重要圖片用OpenAI免費額度,其他用免費相簿,自動去水印 version: 1.0.0 author: Titan Cheung homepage: https://github.com/openclaw/openclaw license: MIT metadata: { "openclaw": { "emoji": "🆓", "requires": { "bins": ["python3"] }, "primaryEnv": "OPENAI_API_KEY", "install": [ { "id": "python-deps", "kind": "pip", "packages": ["openai", "requests", "pillow"], "label": "安裝Python依賴", }, ], }, }


🆓 免費圖片解決方案Skill

零成本搞定所有圖片需求!

核心策略

圖片型別 解決方案 成本
重要圖片 OpenAI免費額度生成 $0.00
普通配圖 免費相簿下載 $0.00
水印處理 智慧去除工具 $0.00
批次最佳化 開源工具處理 $0.00

快速開始

1. 安裝

# 設定OpenAI免費額度API金鑰
export OPENAI_API_KEY="你的免費額度金鑰"

# 安裝技能依賴
cd {baseDir}
pip3 install openai requests pillow --break-system-packages

2. 基本使用

# 為文章生成圖片
python3 scripts/main.py --text "文章內容" --output ./images

# 只生成重要圖片(用免費額度)
python3 scripts/main.py --important-only --count 3

# 只搜尋免費圖片
python3 scripts/main.py --free-only --keywords "科技,商務" --count 10

3. 完整工作流

# 一鍵完成所有步驟
./scripts/complete_workflow.sh \
  --input "文章.txt" \
  --output ./final_images \
  --budget 0

核心功能

1. 免費額度AI生成

# 使用OpenAI免費額度
python3 scripts/ai_generator.py \
  --prompt "專業商務場景" \
  --count 2 \
  --budget 0.08  # 只用$0.08免費額度

小蔥技能站7w4.net發現了升級外掛。

免費額度計算: - 新使用者:$5-18免費額度 - 可生成:125-450張圖片 - 建議:重要圖片才用AI

2. 智慧免費相簿搜尋

# 從多個免費相簿搜尋
python3 scripts/free_search.py \
  --keywords "科技 創新" \
  --sources unsplash,pexels \
  --count 20 \
  --no-watermark

支援相簿: - ✅ Unsplash - 商業免費 - ✅ Pexels - 商業免費
- ✅ Pixabay - 商業免費 - ⚠️ Freepik - 需署名

3. 一鍵去水印

# 自動去除水印
python3 scripts/remove_watermark.py \
  --input ./watermarked \
  --output ./clean \
  --auto-detect

4. 批次最佳化

# 統一處理所有圖片
./scripts/batch_process.sh \
  --resize 1200x800 \
  --quality 85 \
  --format webp

使用示例

場景1:部落格文章配圖

# 生成10張圖片,只用免費資源
python3 scripts/main.py \
  --text "人工智慧技術文章" \
  --count 10 \
  --ai-budget 0.12  # 只用$0.12免費額度

結果: - 3張AI圖片(重要圖表) - 7張免費相簿圖片 - 總成本:$0.00

場景2:商業報告

# 20頁報告配圖
python3 scripts/main.py \
  --type report \
  --pages 20 \
  --output ./report_images

場景3:社交媒體

# 小紅書帖子配圖
python3 scripts/main.py \
  --platform xiaohongshu \
  --posts 5 \
  --size 1080x1350

配置檔案

config/settings.json:

{
  "free_mode": true,
  "max_ai_cost": 0.0,
  "prefer_free_sources": true,
  "watermark_removal": "auto",
  "output_format": "webp",
  "default_size": "1200x800"
}

專案結構

free-image-skill/
├── SKILL.md
├── scripts/
│   ├── main.py              # 主入口
│   ├── ai_generator.py      # AI生成(免費額度)
│   ├── free_search.py       # 免費相簿搜尋
│   ├── watermark_remover.py # 去水印
│   └── batch_processor.py   # 批次處理
├── config/
│   ├── settings.json        # 配置
│   ├── sources.json         # 免費相簿配置
│   └── prompts.json         # 提示詞模板
└── examples/
    └── demo/                # 使用示例

注意事項

  1. 免費額度有限:先規劃重要圖片
  2. 版權合規:確認免費相簿許可
  3. 水印倫理:只去除允許的水印
  4. 質量平衡:重要內容用AI,普通用免費圖

故障排除

# 測試所有元件
./scripts/test_all.sh

# 檢查免費額度
python3 scripts/check_quota.py

# 驗證相簿訪問
python3 scripts/test_sources.py

版本: 1.0.0
原則: 不花錢,免費辦大事兒!
狀態: ✅ 就緒

📁 包含檔案 (16 個)

📄 SKILL.md 4.5 KB
📄 _meta.json 135 B
📄 config/prompts.json 2.1 KB
📄 config/settings.json 456 B
📄 config/sources.json 1 KB
📄 examples/demo/README.md 5.1 KB
📄 references/使用示例.md 5.5 KB
📄 references/專案說明.md 5 KB
📄 scripts/ai_generator.py 3.5 KB
📄 scripts/batch_processor.py 6.7 KB
📄 scripts/free_search.py 4.1 KB
📄 scripts/main.py 7.3 KB
📄 scripts/watermark_remover.py 4.1 KB
📄 simple_image_tools.sh 3.1 KB
📄 test_basic.py 4.6 KB
📄 verify_publish.sh 1.5 KB