I think he wants the watermarked images to be generated as opposed to having to be manually created.

To answer the OP: There seem to be a number of different ways to overlay or blend images. This is probably the most appropriate solution:
http://www.imagemagick.org/Usage/compose/#blend_use

Feed the images through a script, as suggested, but you only need to return the image location, not pass through the entire image, and have that location be to the watermarked version. If none can be found (-e $basepath), have the script blend one using the non-watermarked version + your watermark image.

I'd supply specific code, but I'm not very familiar with this particular library, I generally do my image manipulation with GD in PHP (ironically, the ImageMagick site is also written in PHP...)


In reply to Re: watermarks with Image::Magick by TJPride
in thread watermarks with Image::Magick by fugee279

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.