Page 1 of 1

Watermarking with Images

Posted: 2009-12-21T13:30:40-07:00
by HenryH
I'm trying to apply the code listed on this page:

http://www.imagemagick.org/Usage/annota ... mark_image

to watermark some images. I've created a file called wm.png that has what I want to use as a watermark. I was able to use the following command to watermark an image (test.jpg) and create output1.jpg with the desired results.

Code: Select all

composite -dissolve 25% -gravity south wm.png test.jpg output1.jpg
What I'd really like to do, though, it apply the Greyed Dissolve command to my images. When I issue this command (all one line):

Code: Select all

C:\>convert wm.png -fill grey50 -colorize 40 miff:- | composite -dissolve 30 -gravity south - test.jpg output2.jpg
however, I get two error messages:

Code: Select all

composite: no decode delegate for this image format `C:/DOCUME~1/HARTLE~1/LOCALS~1/Temp/magick-Jfm4-lu1' @ constitute.c/ReadImage/503.
composite: missing an image filename `output2.jpg' @ composite.c/CompositeImageCommand/1588.
This is ImageMagick version: ImageMagick 6.5.2-9 2009-05-26 Q16 OpenMP

identify -list format shows, among other things, the following three lines which, I assume, cover the image formats needed for this to work:

Code: Select all

      JPG* JPEG      rw-   Joint Photographic Experts Group JFIF format
     MIFF* MIFF      rw+   Magick Image File Format
      PNG* PNG       rw-   Portable Network Graphics (libpng 1.2.35)
I really don't know what else to look at. I'd appreciate it if someone would point out what I'm doing wrong. Thanks.

Re: Watermarking with Images - SOLVED

Posted: 2009-12-21T13:46:58-07:00
by HenryH
Never mind. I figured out what I was doing wrong. For anyone else who happens to get a similar error, check your system's search path. In my case, the path included c:\program files\real\realplayer\converter; which includes a convert.exe file. So, the convert portion of the command was not generating anything usable by composite. Duh. It must have been added fairly recently because I use convert fairly frequently and this is the first problem I've had.

Sorry to take up the bandwidth and thanks for a great tool.

Re: Watermarking with Images

Posted: 2009-12-21T14:18:15-07:00
by Bonzo
There is also a Windows program called convert; some people rename the IM convert program to IMconvert.