Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pythad/nider
Python package to add text to images, textures and different backgrounds
https://github.com/pythad/nider
image-processing images python social-media
Last synced: 1 day ago
JSON representation
Python package to add text to images, textures and different backgrounds
- Host: GitHub
- URL: https://github.com/pythad/nider
- Owner: pythad
- License: mit
- Created: 2017-07-26T22:51:07.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2024-05-29T07:50:44.000Z (6 months ago)
- Last Synced: 2024-05-29T20:31:52.488Z (6 months ago)
- Topics: image-processing, images, python, social-media
- Language: Python
- Size: 9.99 MB
- Stars: 148
- Watchers: 2
- Forks: 18
- Open Issues: 12
-
Metadata Files:
- Readme: README.rst
- Changelog: HISTORY.rst
- Contributing: CONTRIBUTING.rst
- License: LICENSE
- Authors: AUTHORS.rst
Awesome Lists containing this project
README
=====
nider
=====.. image:: https://img.shields.io/travis/pythad/nider.svg
:target: https://travis-ci.org/pythad/nider
:alt: Travis build.. image:: https://img.shields.io/pypi/pyversions/nider.svg
:target: https://pypi.python.org/pypi/nider
:alt: Supported python versions.. image:: https://img.shields.io/pypi/v/nider.svg
:target: https://pypi.python.org/pypi/nider
:alt: PyPI version.. image:: https://readthedocs.org/projects/nider/badge/?version=latest
:target: https://nider.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status.. image:: https://pyup.io/repos/github/pythad/nider/shield.svg
:target: https://pyup.io/repos/github/pythad/nider/
:alt: Updates.. image:: https://img.shields.io/github/license/pythad/nider.svg
:target: https://pypi.python.org/pypi/nider
:alt: LicensePython package for text images generation and watermarking
* Free software: MIT license
* Documentation: https://nider.readthedocs.io.``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
************.. code-block:: console
$ pip install nider
*******
Example
*******Creating a simple image is as easy as
.. code-block:: python
from nider.models import Header
from nider.models import Paragraph
from nider.models import Linkback
from nider.models import Content
from nider.models import Imageheader = 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
=========
.. image:: https://github.com/pythad/nider/raw/master/examples/example1/result.png
:alt: example1Example 2
=========
.. image:: https://github.com/pythad/nider/raw/master/examples/example2/result.png
:alt: example2Example 3
=========
.. image:: https://github.com/pythad/nider/raw/master/examples/example3/result.png
:alt: example3Example 4
=========
.. image:: https://github.com/pythad/nider/raw/master/examples/example4/result.png
:alt: example4Watermark example 1
===================
.. image:: https://github.com/pythad/nider/raw/master/examples/add_watermark_example/result.jpg
:alt: add_watermark_exampleWatermark example 2
===================
.. image:: https://github.com/pythad/nider/raw/master/examples/draw_on_bg_with_watermark_example/result.png
:alt: draw_on_bg_with_watermark_example