#!/bin/bash\nWM=/home/py/watermarkq.png # This is the path to your watermark image\nSCALE=100 # This sets the scale % of your watermark image\n\nif\n [ "$REPLY" != "n" ] && [ "$REPLY" != "N" ]\nthen\n for pic in /home/115/up/*.jpg; do # This will works for all image formats ,also works with single page pdf file\n echo Watermarking $pic\n #composite command works only after installing Imagemagick\n composite -dissolve 100% -gravity northeast -quality 95 ( $WM -resize $SCALE% ) "$pic" "$pic"\n done\nelse\n echo exiting\n exit 0\nfi\n#End\n#for pic in *.jpg; do

Batch Watermark Images with ImageMagick - Right Corner Placement

原文地址: https://www.cveoy.top/t/topic/qqwh 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录