Skip to content
/ nider Public

Python package to add text to images, textures and different backgrounds

License

Notifications You must be signed in to change notification settings

pythad/nider

Repository files navigation

nider

Travis build Supported python versions PyPI version Documentation Status Updates License

Python package for text images generation and watermarking

nider is an approach to make generation of text images simple yet flexible. Creating of an image is as simple as describing units you want to be rendered to the image and choosing a method that will be used for drawing.

Installation

$ pip install nider

Example

Creating a simple image is as easy as

from nider.models import Header
from nider.models import Paragraph
from nider.models import Linkback
from nider.models import Content
from nider.models import Image

header = Header('Your super interesting title!')
para = Paragraph('Lorem ipsum dolor sit amet.')
linkback = Linkback('foo.com | @username')
content = Content(para, header, linkback, padding=60)

img = Image(content, fullpath='result.png')

img.draw_on_bg('#212121')

Featured images

All of the featured images were drawn using nider package. Code used to generate them can be found here.

Example 1

example1

Example 2

example2

Example 3

example3

Example 4

example4

Watermark example 1

add_watermark_example

Watermark example 2

draw_on_bg_with_watermark_example

About

Python package to add text to images, textures and different backgrounds

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •