将代码中的位置修改为右上角#!binbashWM=homepywatermarkqpng # This is the path to your watermark imageSCALE=100 # This sets the scale of your watermark imageif $REPLY != n && $REPLY != N
#!/bin/bash WM=/home/py/watermarkq.png # This is the path to your watermark image SCALE=100 # This sets the scale % of your watermark image
if [ "$REPLY" != "n" ] && [ "$REPLY" != "N" ] then for pic in /home/115/up/*.jpg; do # This will works for all image formats ,also works with single page pdf file echo Watermarking $pic #composite command works only after installing Imagemagick composite -dissolve 100% -gravity northeast -quality 95 ( $WM -resize $SCALE% ) "$pic" "$pic" done else echo exiting exit 0 fi #End #for pic in *.jpg; d
原文地址: https://www.cveoy.top/t/topic/iKhb 著作权归作者所有。请勿转载和采集!