Git Product home page Git Product logo

pyreswater's Introduction

PYRESWATER

A simple python command-line utility to resize and watermarking images.

Virtualenv

Dependencies are specified in the requirements.txt file as usual.

Usage examples

The logo for the watermark has to be a png file with trasparency (otherwise the result would not be so good...but it's you choice).

To start use Pyreswater go inside the watermark folder and:

  • Resize all pictures inside the images folder to a maximum of 1800 pixels and with no watermark:

    python watermark.py -n -r -m 1800 images

  • Resize all pictures inside the images folder to a maximum of 2100 pixels, at 300dpi, with white watermark:

    python watermark.py -p -r -m 2100 images

  • Resize the file ciccibalicci.jpg to a maximum of 2000 pixels and append the string res to the output file:

    python watermark.py -s res -r -m 2000 ciccibalicci.jpg

  • Resize the file ciccibalicci.jpg to a maximum of 2100 pixels using the png at the specified path:

    python watermark.py -r -m 2100 -l "images/logo/Custom_Logo.png" ciccibalicci.jpg

Just use python watermark.py -h to show the help text.

Right now, all the processed images go inside the watermarked folder. In the future it will be possibile to save them beside the original.

DPI

If you don't specify the -p flag, all the processed images will be scaled to 150dpi. If you use -p they will be at 300dpi.

Notes

This software grew up as a personal command-line tool to help me in my workflow with my photos. It does what it's supposed to do. Right now is quite versatile (for a side project with no time dedicated to it) but has some limitations.

Feel free to try it. I may enhance it when the time comes...

If you have any requests, open an issue.

pyreswater's People

Contributors

arsenico13 avatar

Watchers

 avatar  avatar

pyreswater's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.