Giter Site home page Giter Site logo

batchwatermarking's Introduction

batchWaterMarking : a simple way to watermark all your pictures in one line

This repository contains the last version of my personal watermarking script.

This script simply aims at adding an unobtrusive watermark to all images of an input folder and copy final images in an output folder. The watermark is added with transparency effect in order to keep the image quality.

The script should recognize all kinds of image formats, and correctly handle filenames with spaces and (most of) unusual characters. In addition, the script is designed to automatically recognize whether your image is in portrait or lanscape mode. The watermark is put in a different corner to better visual results.

The use of this script is pretty straightforward :

$ waterMark in_folder out_folder watermark_image

where :

  • in_folder contains your input images
  • out_folder will contain all new images
  • watermark_image is the watermark you want to set on the image

The script also resize images in order to fit with Piwigo's default settings. (1024x768). This option should be set as optional soon.

Installation

The only prerequisite to use this script is imagemagick :

$ apt-get install imagemagick

You do not need to install this script in any way. You can use it from anywhere as long as you use absolute paths!

A simple way to use waterMark from anywhere is to add it to your ~/bin folder; and give the script execution rights.

$ chmod +x ~/bin/waterMark

This way, you will be able to run it directly in your terminal.

Next steps

Some more options should be added soon:

  • Insert some contrast calculation in order to choose the best color from two different watermarks. This way, the watermark would always be visible
  • Dynamically changechange the size of the watermark to avoid resizing input images
  • Windows support ? ? ?
  • Python version to avoid ugly bash ?

Any idea is welcome

Copyright

You are free to use and modify this script this script as you wish. Please just let my name on top of it and add yours after your modifications ;)

Contact

I would enjoy having feedback if you use this script. Feel free to mail me for any comment or request. And let me know if you find bugs !

You can contact me at julien at lengrand dot fr, or on my current website

batchwatermarking's People

Contributors

jlengrand avatar

Watchers

 avatar  avatar

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.