Skip to content

A script for fast batch compression and watermarking of images

License

Notifications You must be signed in to change notification settings

AiratTop/imagemagick-watermark

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

imagemagick-watermark

imagemagick-watermark

A script for fast batch compression and watermarking of images by AiratTop.

Installation and Usage:

git clone https://github.com/AiratTop/imagemagick-watermark

cd imagemagick-watermark

./imagemagick-watermark.sh

Notes:

  • The script works with the images folder; copy your source images into this folder.
  • Before running the script, install the ImageMagick package (command: sudo apt install imagemagick).
  • Check the script's comments for detailed instructions (you can edit parameters as needed).
  • A quick reference guide for image file operations is available here.
  • Prepare your watermark in advance and place it in the root folder. The watermark file must be named water.png, or you can specify it in the WATER variable.
  • An example image, example.jpg, is provided in the images folder for demonstration purposes (this file can be deleted).
  • The water.xcf file can be edited using GIMP and is used to create the water.png file.

Variables:

  • QUALITY=85 - Changes the image quality (percentage).
  • SIZE=1024 - Resizes images while maintaining aspect ratio (width in pixels).
  • WATER=water.png - Specifies the watermark file name (no spaces).
  • SOURCE=images - Specifies the source images folder.

Folders:

  • images - The folder for source images (this folder must not be deleted and is configured via the SOURCE variable).
  • result-small - The folder for compressed images (created automatically; can be deleted).
  • result-water - The final folder containing compressed images with watermarks (created automatically; can be deleted).

License

This project is licensed under the MIT License - see the LICENSE file for details.


Author

AiratTop

About

A script for fast batch compression and watermarking of images

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Contributors

Languages