Paulette Chadru on wrote... | Hello, | | I am new to ImageMagick and the Linux environment so | my question may look | stupid. I spent some hours trying to solve this | problem : | I have tried the command : | composite copyright.gif DSC0001.jpg fusion.jpg | and I was satisfied with the result. |
Okay. composite can only overlay one image onto one other image to generate a result that can be saved to the save image or a different one. mogrify is the command IM used to batch process multiple images in-place however it can not use a multi-image operator like -composite as it can not tell what is an overlay image and what is the image list to process. All is not lost. As I details in the IM example pages Basics, mogrify http://www.cit.gu.edu.au/~anthony/graphics/imagick6/basics/#mogrify You can use a -draw operator to overlay images in mogrify. mogrify -draw "image over 0,0 0,0 'copyright.gif'" image_list... WARNING: always test mogrify on copys of the original image so you can back track, until you are satisified it does what you want! Other methods are not strictly IM but allow you to rename images, and include... Use a shell loop for $f in *.jpg do composite copyright.gif $f /home/paulette/fusions/$f done Use find (which could be made recursive too, just remove the -prune) find * -prune -name '*.jpg' \ -eval composite copyright.gif '{}' /home/paulette/fusions/'{}' \; Use xargs with a shell wrapper to duplicate the argument. ls *.jpg | xargs -n1 sh -c 'composite copyright.gif $0 fusions/$0' And so on... Anthony Thyssen ( System Programmer ) <[EMAIL PROTECTED]> ----------------------------------------------------------------------------- It was dawn; the sun had not yet quite dared to show its round face, because darkness made it nervous. - Piers Anthony "Man from Mundana" ----------------------------------------------------------------------------- Anthony's Home is his Castle http://www.cit.gu.edu.au/~anthony/ _______________________________________________ Magick-users mailing list [email protected] http://studio.imagemagick.org/mailman/listinfo/magick-users
