PDA

View Full Version : batch adding logo to images with mogrify (or anything)?



contraculto
22nd August 2007, 06:46 PM
hi there,

i'm modifying a lot of images for a website and thanks to mogrify (image-magick) i've saved lots of time in the converting, scaling, etc., but now i want to add a logo (transparent png) to the bottom right corner of everyone of them and, for some reason, it just wont work.

i know it works for text but i really need the image logo. and doing it in gimp would take hours. anyone has any experience on this? thanks.

contraculto
23rd August 2007, 06:03 AM
anyway, i found it. in case anyone else wants to doi t, here's the deal:

mogrify -draw 'image Over x,y a,b "path/to/watermark.png"' *.jpg

x: watermark pos x (in pixels, from top-left)
y: watermark pos y (in pixels, from top-left)
a: watermark width
b: watermark height