Skip to content

notbackstreet/watermarker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

watermarker

Simple CLI tool to watermark and overlay images. Built using Go.

Special Thanks

Watermarker was built using the following wonderful packages:

Cobra from @spf13

Imaging from @disintegration

Install

go get -u github.com/YoungMetroTrusted/watermarker

Useage

Get help

watermarker help
watermarker image -h
watermarker bulk -h

Watermark a single image

Note: This will overwrite the original image

watermarker image examples/example_image.jpg example_watermark.png

Watermark a single image with custom opacity

watermarker image examples/example_image.jpg example_watermark.png -o 0.35

Watermark a single image with custom opacity and write to a new file

watermarker image examples/example_image.jpg example_watermark.png -o 0.35 -n new_image.jpg

Watermark all images in a folder

Note: New images will be saved to a folder named "watermarked" in the current directory

watermarker bulk imageFolder/ example_watermark.png

Watermark all images in a folder with custom opacity

watermarker bulk imageFolder/ example_watermark.png -o 0.8

Watermark all images in a folder with custom opacity and custom output folder

watermarker bulk imageFolder/ example_watermark.png -o 0.8 -n examples/output/bulk/