Skip to content

swport/TextToQuoteImage

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TextToQuoteImage

Python library to convert text to a quote image

It can automatically adjust the text to the fit the bg image width & height

Basic Usage

from ImageQuote import ImageQuote

image = ImageQuote()
image.set_quote("स्वार्थ संसार का एक ऐसा कुआं है जिसमें गिरकर निकल पाना बड़ा कठिन होता हैं।")
image.set_quote_by("भगवान श्री कृष्ण")
image.set_font_family("/path/to/font/file.ttf")
image.set_background_image("/path/to/background_image/file.jpeg")

image.generate_image("./output")

Releases

No releases published

Packages

No packages published

Languages