Giter Site home page Giter Site logo

ordinaryorgan / photowatermark Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leslievan/semi-utils

2.0 0.0 0.0 77.18 MB

一个批量添加相机机型和拍摄参数的工具,后续「可能」添加其他功能。

Home Page: https://lsvm.xyz/2023/02/semi-utils-intro/

License: Apache License 2.0

Python 100.00%

photowatermark's Introduction

semi-utils

hugo-papermod GitHub download language

这是一个用于给照片批量添加水印的工具。

功能列表

功能 描述 可显示/隐藏 可定义位置
厂商 Logo 支持自动识别厂商 Logo。
相机厂商 支持自动识别相机厂商。
相机型号 支持自动识别相机型号。
拍摄参数 支持自动识别感光度、快门、光圈大小和焦距/等效焦距,如 70mm f/8.0 1/250 IS0400,优先读取等效焦距。
拍摄日期 支持自动识别拍摄日期,如 2023-03-25 17:08
自定义文字 支持自定义文字。

效果展示

布局:normal_with_right

logo 居右,下方文字内容可自定义


布局:normal_with_right

logo 居右,添加外包围白框,下方文字内容可自定义


布局:normal

logo 居左,下方文字内容可自定义


布局:square

布局:square" attr="正方形白色边框

使用方法

简要步骤

Windows

  • 点击Release 可直接下载压缩包,其中包含可执行文件 main.exe、配置文件 config.yaml、输入文件夹 input 和输出文件夹 output
  • 解压压缩包,比如解压到 D:\semi-utils
  • 将需要添加水印的图片复制到 D:\semi-utils\input 文件夹中
  • 双击 D:\semi-utils\main.exe 运行程序
  • 按照提示输入 y或回车 开始执行
  • 处理好的图片存放在 D:\semi-utils\output

macOS/Linux

  • 下载源码后解压,比如解压到 ~/semi-utils

  • 安装需要的依赖(正式运行前执行一次即可)

    打开命令行/终端,输入:

    cd ~/semi-utils
    pip install -r requirements.txt
  • 将需要添加水印的图片复制到 ~/semi-utils/input 文件夹中

  • 打开命令行/终端,输入

    cd ~/semi-utils
    python ~/semi-utils/main.py
  • 按照提示输入 y或回车 开始执行

  • 处理好的图片存放在 ~/semi-utils/output

高级配置

通过 config.yaml 配置。

参数 描述
base.font 水印字体路径,常规字重
base.bold_font 水印字体路径,加粗字重
base.input_dir 输入的原始照片,建议将原始照片复制一份到该文件夹
base.output_dir 输出的带水印的照片
base.quality 输出质量,默认为 100,可以输入 60-100 之间的数字
logo.enable true 或者 false,是否显示厂商 logo
logo.makes 厂商 logo 列表,默认支持尼康、佳能、索尼、宾得,可自行添加配置
logo.makes.item 厂商配置,一个带有 idpath 两个键的字典
logo.makes.item.id 厂商标识,由 Exif 信息提供
logo.makes.item.path 厂商 logo 路径,可自定义

关于

鸣谢:JetBrains 为本项目提供的开源许可

许可证

本项目的发布基于 Apache License 2.0.

photowatermark's People

Contributors

leslievan avatar

Stargazers

vv avatar icekylin avatar

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.