Go package "watermark" applies a specified logo in a configurable position and creates a new file from the original.
- Run 
git clone https://github.com/collinux/watermark - Run 
go run watermark.go <path_to_image>with the path being jpg/jpeg file - A new image will be created from the original named "<image_name>_watermark.jpg" (does not override original)
 
- Run 
go get github.com/collinux/watermark - Add 
import github.com/collinux/watermark - Create a new Watermark struct with the configuration of your choice (only source is required by default)
 - Call 
watermark.Apply(<filename>)with the file that you want to place the watermark onto 
logo := watermark.Watermark{Source: "~/Pictures/my_logo.png"}
logo.Apply("~/Pictures/gopherart.jpg")
Remember to import "github.com/collinux/watermark"
Copyright (C) 2016 Collinux GPL version 2 or higher http://www.gnu.org/licenses/gpl.html
Pull requests happily accepted on GitHub!