使用叛逆编码器特色图像样式为图像添加标题
image-titler的Python项目详细描述
图像标题
使用叛逆编码器特色图像样式向图像添加标题。风格可以是 定义如下:
Titles are split in half by the closest space and displayed using two solid red bars with a white text overlay on the upper right portion of the image.
例如:
如何跑步
下面的代码片段演示了使用脚本的几种方法:
pip install image-titler # Installs the script image_titler # Runs as default image_titler --title "Hello, World!"# Adds a custom title image_titler --output_path "path/to/output"# Sets the output path image_titler --path "path/to/image"# Sets the image path image_titler --tier "free"# Sets the membership tier which changes the rectangle borders