Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to add watermarks to images via command line - Hopefully using Irfanview

Tags:

I have done a bit of digging and i havn't been able to find any feasible way of adding watermarks to my 1000+ images automatically. Is this possible with irfanview?? What im looking for is just some basic transparent text overlaying across each image. Can this be done using command line? Is it possible to go one step further and add a logo watermark?

Can you recommend any other programs rather than irfanview to do this, if its not possible to do it in this program.

like image 634
aaron Avatar asked Apr 04 '11 00:04

aaron


People also ask

How can I easily add a watermark?

Online watermark tools Another easy way to watermark a photo is to use an online tool like PicMarkr. Upload up to five photos, or pull them from Flickr or Facebook, then pick from three watermarking options (text, image, or tiled).


1 Answers

I recommend using ImageMagick, which is open source and quite standard for manipulating images on the command line.

Watermarking with an image is as simple as

composite -dissolve 30% -gravity south watermark.jpg input-file.jpg output-file.jpg 

With text, it's a little more complicated but possible.

Using the above command as an example, a Bash command for doing this to all files in folder would be:

for pic in *.jpg; do     composite -dissolve 30% -gravity south watermark.jpg $pic ${pic//.jpg}-marked.jpg done 

For more information about watermarking with ImageMagick, see ImageMagick v6 Examples.

like image 134
StackExchange saddens dancek Avatar answered Oct 17 '22 07:10

StackExchange saddens dancek