用于向图像、纹理和不同背景添加文本的python包

nider的Python项目详细描述


===
nider
==

图片::https://img.shields.io/travis/pythad/nider.svg
:目标:https://travis ci.org/pythad/nider
:alt:travis build

图片::https://img.shields.io/pypi/pyversions/nider.svg
:目标:https://pypi.python.org/pypi/nider
:alt:支持的python版本

…图片::https://img.shields.io/pypi/v/nider.svg
:目标:https://pypi.python.org/pypi/nider
:alt:pypi version

图片::https://readthedocs.org/projects/nider/badge/?version=latest
:目标:https://nider.readthedocs.io/en/latest/?徽章=最新
:alt:文档状态

…图片::https://pyup.io/repos/github/pythad/nider/shield.svg
:目标:https://pyup.io/repos/github/pythad/nider/
:alt:updates

图片::https://img.shields.io/github/license/pythad/nider.svg
:目标:https://pypi.python.org/pypi/nider
:alt:license


python文本图像生成和水印包生成文本图像简单灵活。创建图像非常简单,只需描述要渲染到图像的单位,然后选择用于绘制的方法即可。


*****




代码块::控制台代码块::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 image

header=header('您的超级有趣的标题!')
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
********

所有featured images都是使用“nider”包绘制的。用于生成它们的代码可以在“here<;https://github.com/pythad/nider/tree/master/examples>;”中找到。




example 1
=图片::https://github.com/pythad/nider/raw/master/examples/example1/result.png
:alt:example1


example 2
==
。图片::https://github.com/pythad/nider/raw/master/examples/example2/result.png
:alt:example2


example 3
==
。图片::https://github.com/pythad/nider/raw/master/examples/example3/result.png
:alt:example3


example 4
==
。图片::https://github.com/pythad/nider/raw/master/examples/example4/result.png
:alt:example4


watermark示例1
=图片::https://github.com/pythad/nider/raw/master/examples/add_watermark_example/result.jpg
:alt:add_watermark_example

watermark example 2
==图片::https://github.com/pythad/pythad/nider/raw/master/examples/draw/graw/graw/graw/master/examples/result.png
:alt:graw/graw/graw/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u/u//>

0.2.0(2017-08-12)
----

*添加了“pil.imageenhance”和“pil.imagefilter”内置支持
*为单位颜色启用自动颜色生成




0.3.0(2017-08-17)
----

*为单位添加了阴影支持类别



0.4.0(2017-09-14)
----——

*增加了向图像添加水印的功能








欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
Docker&SeleniumJava:无法在Docker容器上运行的chrome浏览器中上载图像/文件   在python中运行java命令   Java垃圾收集器异常行为   java java是否根据底层操作系统执行字节码级优化?   java是否可以休眠自定义查询返回映射而不是列表?   java Spring引导RabbitMQ接收器Jackson反序列化到POJO   apache flex在ActionScript3中创建对象相等“HashMap”作为java HashMap   java如何在Eclipse集成中切换JProfiler启动器   缓存JSP页面结果的java最佳实践?   java集成jaxb绑定文件,使用CXF生成基于WSDL的客户端   java为什么在上传操作结束之前,客户端没有检测到HttpServletResponse的PrintWriter内容?   java在接口内创建类和在类内创建接口有什么用   java向文件写入错误Android Studio   java合并多个RealmList并对结果列表排序?   谷歌API视觉java。lang.NoSuchMethodError   java如何使用逗号分别存储每个值,然后将它们存储到单独的数组中?