This script automates the process of adding watermarks to a batch of images using ImageMagick.
-
Clone the Repository:
git clone https://github.com/WireBot34/scripts.git cd scripts/batch-image
-
Run the Script:
./batch-watermark.sh
-
Follow the Prompts:
- Enter the path to the input folder when prompted.
- The script will create a new folder with "_marked" appended to the input folder name.
- Images in the input folder will be watermarked and saved in the output folder.
- ImageMagick: Make sure it is installed on your system.
sudo apt-get update
sudo apt-get install imagemagick
sudo dnf install imagemagick # For Fedora
# or
sudo yum install imagemagick # For older versions of Fedora and RHEL
sudo pacman -S imagemagick
sudo zypper install imagemagick
If your distribution doesn't use any of the above package managers or you prefer to build from source, you can download and compile ImageMagick:
- Visit the ImageMagick download page to get the latest source code.
- Extract the downloaded archive.
- Navigate to the extracted directory in the terminal.
- Run the following commands:
./configure
make
sudo make install
Please note that the commands provided are general, and depending on your system, you might need additional privileges (using sudo
), and some dependencies might have different package names. Always check your system's documentation for specific details.
Choose the set of commands that corresponds to your distribution and package manager. If you encounter any issues or need further assistance, feel free to ask!
- Adjust the watermark properties in the script (font size, positioning, etc.) based on your preferences.
If you have suggestions or improvements, feel free to open an issue or submit a pull request.
This script is licensed under the MIT License.