Coder Social home page Coder Social logo

wm's Introduction

wm

Add watermark to a picture. I wrote this mainly to put anoying but visible marks on copies of my ID card before sending it somewhere. It's neither pretty nor clever but get's the work done. It will also strip the metadata of the resulting image.

It will not overwrite the original image. Instead, it will create a new image next to it (the watermark text will be appended to the file name).

Prerequisites

Usage

wm [-dh] [-s size] [-t text] file

Options:
d     Add the current date to the watermark.
h     Print this Help.
s     Set the font size.
t     Set the text.

wm will save the output to a separate file next to the original.

-h Help

Print the help text.

-d Date

Adds the current date (dd.MM.YYYY) below each occurance of the watermark text

-s size Size

The text size. It's not an exact size and depends a lot on how big the image and how long the text is. 800 is usually a good starting point.

-t text

Set the watermark text.

example

sh ./wm.sh -d -s 900 -t "Copy for some important place" ~/pictures/id/id_censored.jpeg

Saved result to /users/username/pictures/id/id_censored-copy-for-some-important-place-19.03.2024.jpg

wm's People

Contributors

martinhauke avatar

Stargazers

 avatar Theo Salzmann avatar

Watchers

 avatar

wm'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.