Hello,
How can watermark a color image inside a gray scale image?
Thanks
Watermarking problem
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Watermarking problem
see http://www.imagemagick.org/Usage/compose/#dissolve
It does not matter if one image is gray and the other is color (either way)
It does not matter if one image is gray and the other is color (either way)
Code: Select all
convert grayimage colorimage -compose dissolve \
-define compose:args={src_percent},{dst_percent} \
-composite result
Re: Watermarking problem
Thank you,but i think after your solution,grayscale image will be colorful.
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Watermarking problem
If you put a color watermark on a grayscale image, the result must be sRGB and not grayscale, since there is some color in the picture. You cannot keep the result as grayscale.
If you want a grayscale result, either add -colorspace gray at the end before the output or use a grayscale version of the watermark image
If you want a grayscale result, either add -colorspace gray at the end before the output or use a grayscale version of the watermark image