Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

watchmark

폴더를 감시하다가 새 이미지가 들어오면 대각선 타일 워터마크를 자동으로 적용해 출력 폴더에 넣어주는 Windows CLI 툴.

Before After
before after
before_dark after_dark

밝은 이미지에는 검정, 어두운 이미지에는 흰 워터마크가 자동으로 적용됩니다.

setting.ini

처음 실행하면 실행 파일 옆에 자동 생성됩니다.

기본값 설명
input_dir input 감시 폴더 (1개 고정, 상대경로면 exe 기준)
output_dir output 출력 폴더 (1개 고정)
text google.com 워터마크 문구
opacity 5 불투명도 % (0~100)
angle 30 기울기 각도
scale 0.035 글자 크기 = 이미지 가로폭 x scale
min_font_size 14 글자 최소 크기 px (작은 이미지에서 글자 깨짐 방지)
gap 3.0 문구 간격 배수
color_light #000000 밝은 이미지용 글자색
color_dark #ffffff 어두운 이미지용 글자색
filename_prefix (빈 값) 출력 파일명 앞에 붙일 문자열. 빈 값 = 안 붙임
filename_suffix _wm 출력 파일명 뒤(확장자 앞)에 붙일 문자열. 빈 값 = 안 붙임
poll_interval 3 폴링 주기 (초)
log_file on on이면 log.txt 기록, off면 콘솔만

빌드

py -m pip install pillow pyinstaller
py -m PyInstaller --onefile --name watchmark main.py

dist\watchmark.exe 가 생성됩니다.

License

MIT

About

Auto-watermark tool for Windows

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages