Loading...
Loading...
Process images and support adding captions to images. Two caption modes: bottom frame style (like a picture frame) and internal sticker style (similar to Xiaohongshu effect). Implemented with PIL/Pillow, supports Chinese and Emoji.
npx skill4agent add z0gsh1u/oh-my-writing-skill image-processingpython scripts/image_processor.py input.jpg output.jpg --mode frame --text "这是配文 🎉"┌────────────────────┐
│ │
│ Original Image│
│ │
├────────────────────┤
│ 这是配文 🎉 │
└────────────────────┘--mode frame--text--bg-colorwhiteblack#RRGGBB--text-colorblack--font-size--paddingpython scripts/image_processor.py input.jpg output.jpg --mode sticker --text "重点!" --position bottom-right┌────────────────────┐
│ │
│ Original Image ┌───┤
│ │重点│
└───────────────┴───┘--mode sticker--text--positiontop-lefttop-rightbottom-leftbottom-rightcenter--bg-color#FFE4B5--text-color#333333--font-size--opacity--radius--marginpython scripts/image_processor.py ./images/*.jpg --output-dir ./output --mode frame --text "配文"C:/Windows/Fonts/msyh.ttcC:/Windows/Fonts/simhei.ttfC:/Windows/Fonts/simsun.ttcpython scripts/image_processor.py input.jpg output.jpg --font "C:/MyFonts/custom.ttf" --text "配文"| Name | Code | Usage |
|---|---|---|
| White | | Frame background |
| Black | | Dark background/text |
| Light Orange | | Sticker background |
| Light Blue | | Sticker background |
| Light Green | | Sticker background |
| Light Pink | | Sticker background |