Skip to content

qq413434162/easy_add_text_to_image

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easy_add_text_to_image

PyPI version Python Version

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.

Features

  • rich annotations
  • simple and easy to use
  • convenient development CLI tool provide

Requirement

Pillow==8.4.0

turns this

xxEfmt.png

to this

xxEh0P.png

How to use it

  • 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()

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages