Giter Site home page Giter Site logo

watermarker's Introduction

Photo watermark/resize script

Script to batch add a SVG watermark to and/or resize JPG files.

Usage

  1. Copy the script and watermark.svg file in a local folder,
  2. (optional) Add watermarker.sh to your $PATH environment variable to simplify usage.
  3. Edit or replace watermark.svg with your watermark*,
  4. Run script from the directory of the photos you want to process with the desired flags.

*Make sure to resize the svg to fit content (File > Document properties in Inkscape)

Flags

-s  Size of output image (<width>x<height>, <width>x, <height>y)
-w  SVG file to use as watermark
-a  Text to append to processed file names
-o  Output path of processed files (default='watermarker/')
-h  Shows this usage description
-x  Shows some usage examples

Example

$ ./watermarker.sh -w my_watermark.svg -s 1080y -o ~/path_to_output/
$ ./watermarker.sh -w my_watermark.svg -o ~/path_to_output/
$ ./watermarker.sh -w my_watermark.svg -a "_watermarked"
$ ./watermarker.sh -s 1080x -o -a "_x1080" ~/path_to_output/
$ ./watermarker.sh -s 1080x1920

Dependency

The shell script uses the following command line tools: convert and composite (ImageMagick), getopts.

Final words

If you find this useful or even adapt the script for other things you can show some love by starring this repo.

watermarker's People

Contributors

an7ar35 avatar

Watchers

James Cloos avatar  avatar

watermarker's Issues

Permission denied

Permission denied @ error/blob.c/OpenBlob/2722 when -a is used without an output path.
/ char is added to output filename and creates a copy issue.

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.