easy_add_text_to_image
is a CLI Tool or Package Generator which automatically
adds white space and text to the bottom of your image.
- rich annotations
- simple and easy to use
- convenient development CLI tool provide
Pillow==8.4.0
turns this
to this
- bash
python main.py --src "./example/test.png" --out "./example/test_after.png" --text "photo-1546992743-6baeb1d6b07d"
- Code
out_img_path = ""
src_img_path = "./example/test.png"
config = Config(
src=src_img_path,
text="",
out=out_img_path,
font="./fonts/PingFang.ttc",
text_auto_split=True,
)
final_path = EasyAddTextToImage(config).add_text("photo-1546992743-6baeb1d6b07d").save_to()