Watermark batch of images
Project description
Welcome to Watermark Image!
The package will let you watermark batch of images. This package is written in python 3.5.4
You have 3 methods you can use:
Installation
You can install the watermark-image from PyPI:
$ pip install watermarkImage
Example usage:
>>> from watermarkImage import Logic
>>> list = Logic.watermarkDir(dirToSearch, logo, Position.TOP_LEFT)
>>> Logic.saveImages(list, pathForNewImages)
You have 3 methods you can use:
-
watermarkDir:
input:
- dirToSearch: path to folder with all the images you want to watermark. - logo: PIL image object. - Position: one of 4 corners - please use Position enum from the package! - Opacity: opacity of logo (1-10), the default is 5. - Logo size: there are 4 sizes to choose, the default is 2.
The output is list of PIL images.
-
watermarkList:
Same like watermarkDir but instead of "dirToSearch" there is "listOfImages" - list of PIL images. The output is the same.
-
saveImages:
input
- listOfImages: list of PIL images. - pathToSave: path to save the watermark images (the folder will be created if not exists).
Note that the package supports only jpg\png
License
MIT
Free Software, Hell Yeah!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
watermarkImage-1.0.2.tar.gz
(3.5 kB
view hashes)