Skip to main content

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:

  1. 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.

  2. watermarkList:

    Same like watermarkDir but instead of "dirToSearch" there is "listOfImages" - list of PIL images. The output is the same.

  3. 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


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 details)

Uploaded Source

File details

Details for the file watermarkImage-1.0.2.tar.gz.

File metadata

  • Download URL: watermarkImage-1.0.2.tar.gz
  • Upload date:
  • Size: 3.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/39.1.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.4

File hashes

Hashes for watermarkImage-1.0.2.tar.gz
Algorithm Hash digest
SHA256 faa98a40ba2f3c737f442344fc0bee263ab80ed1752b8771aa02ba4d457ab0c3
MD5 eff31fcac530c744d6730bc361766b9e
BLAKE2b-256 2a200a9581639b9d3f0ac84f598de328a8fcf85d1e71e380c7cfb7c8d96ef001

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page