watermark

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 27, 2021 License: Apache-2.0 Imports: 11 Imported by: 0

README

watermark 证件加水印

使用步骤

  1. 将需要添加水印的图片复制到当前目录. 例如 "src.png"

  2. 用文本编辑器打开 config.yml, 修改base_image_path的值

    # 照片地址
    base_image_path: "./src.png"
    # 水印文字
    text: "仅限用于办理护照"
    # 字体 默认为宋体
    font_path: "./SIMKAI.TTF"
    # 字体大小
    font_size: 14
    # 保存图片地址
    save_path: "./result.png"
    
    
  3. 运行 watermark 即可

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL