Install
openclaw skills install image-quote-overlayTạo ảnh quote có gradient overlay và text từ ảnh cá nhân ngẫu nhiên, hỗ trợ kích thước chuẩn LinkedIn, X, Facebook, WordPress.
openclaw skills install image-quote-overlayTạo ảnh overlay quote từ ảnh cá nhân ngẫu nhiên với gradient và text. Hỗ trợ nhiều kích thước cho LinkedIn, X, Facebook, WordPress.
Workflow:
# Thư mục ảnh
PICS_DIR="/Users/quocmodoro/TinClaw/Pics"
# Tên tác giả
AUTHOR_NAME="QUOC MODORO"
# Vai trò
AUTHOR_ROLE="CEO & FOUNDER — MODORO | YBAI"
# Liên hệ
AUTHOR_CONTACT="lebaoquoc.com"
# Tạo file cấu hình
cat > ~/.image-quote-overlay-config.sh << 'EOF'
PICS_DIR="/path/to/your/images"
AUTHOR_NAME="Your Name"
AUTHOR_ROLE="Your Role"
AUTHOR_CONTACT="your-website.com"
EOF
# Sử dụng cấu hình
source ~/.image-quote-overlay-config.sh
./scripts/create-overlay-image.sh "Quote text" output.png
# Tạo ảnh với quote text (sử dụng cấu hình mặc định)
./scripts/create-overlay-image.sh "Quote text" output.png
# Tạo ảnh với cấu hình tùy chỉnh
PICS_DIR="/path/to/images" \
AUTHOR_NAME="Your Name" \
AUTHOR_ROLE="Your Role" \
AUTHOR_CONTACT="your-website.com" \
./scripts/create-overlay-image.sh "Quote text" output.png
./scripts/create-overlay-image.sh "Start your day with AI, not busywork." /tmp/openclaw/uploads/linkedin-morning.png
./scripts/create-overlay-image.sh "AI không thay thế bạn. Người biết dùng AI sẽ thay thế bạn." /tmp/openclaw/uploads/facebook-noon.png
./scripts/create-overlay-image.sh "Tối ưu hoá chiến lược 3A: Từ Social sang Automation" /tmp/openclaw/uploads/wordpress-daily.png
PICS_DIR="/Users/john/photos" \
AUTHOR_NAME="John Doe" \
AUTHOR_ROLE="Marketing Director" \
AUTHOR_CONTACT="john@example.com" \
./scripts/create-overlay-image.sh "Marketing is about telling stories." /tmp/openclaw/uploads/john-quote.png
magick command/Users/quocmodoro/Library/Fonts/Anton-Regular.ttf (cho quote text)/System/Library/Fonts/Supplemental/Arial Bold.ttf (cho tên)/System/Library/Fonts/Supplemental/Arial.ttf (cho subtitle)/Users/quocmodoro/.openclaw/workspace/skills/image-quote-overlay/scripts/create-overlay-image.sh
Created: /tmp/openclaw/uploads/linkedin-morning.png
Photo used: IMG_1234.JPG
/tmp/openclaw/uploads/overlay-output.pngGiải pháp: Thêm ảnh JPG vào thư mục PICS_DIR
Giải pháp: Cài đặt font hoặc cập nhật đường dẫn font trong script
Giải pháp: Cài đặt ImageMagick:
brew install imagemagick
Giải pháp: Thiết lập PICS_DIR hoặc sử dụng cấu hình mặc định
Skill này được dùng trong các cron jobs: