Search code examples
imageresizephotoshopwatermarkphotos

find and replace in a photo (multi image )


I am copying from a site which puts its address in right down corner of the images . But i want to crop or delete the address and replace it with my own watermark.
But i want to crop or delete the address and replace it with my own watermark.
i want to do this for bulk of images .
Is there any way that i can do this with Multiple images.
For example 20 image .
I'm already can do re size bulk images and water mark multiple images
But cropping some special place in every images is my question.
certain position in a photo should be deleted and replaced


Solution

  • I would use ImageMagick which is installed on most Linux distros, and can be installed on OS X using homebrew and can also be downloaded for Windows from here.

    Say you have an original image like this:

    enter image description here

    and you have a watermark saved in a file called watermark.png you can do this:

    convert image.jpg -gravity southeast watermark.png -composite result.jpg
    

    which wil give you this:

    enter image description here

    As regards batching the commands, you don't say what OS you are using, but if it is OSX, you would do something like this in Terminal:

    mkdir watermarked
    for f in *.jpg; do convert "$f" -gravity southeast watermark.png -composite watermarked/"$f"; done
    

    If you are on Windows, you will need to use the mad Windows FOR loop syntax, which is something like

    md watermarked
    FOR %A IN (*.jpg) DO convert %A -gravity southeast watermark.png -composite watermarked/%A