Skip to content

Command line tool for adding a watermark to images

Notifications You must be signed in to change notification settings

Tomunek/placeholder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Placeholder

Simple application for adding watermarks to images

Clean image Watermarked image

Usage

Normal verions:

placeholder [flags] file
  -c    Add watermark in red
  -t    Tilt watermark

Simplified:

placeholder file

Building

Full

To build normal version use branch master. For now, if you want to use your own watermark, replace watermark and watermarkAngled variables with output of the following command

cat your_watermark.png | base64 -w 0

and compile

go build placeholder.go

Simplified

For simplified, checkout branch simplified:

git checkout simplified

This version is good for windows users, as it does not take any parameters and chosen image can just be dragged onto the program executable to watermark it:

GOOS=windows GOARCH=amd64 go build -o placeholder.exe placeholder.go