SO you are 'marking' the image twice: once with composition (visible), and one with stegano (invisible).
WARNING: a stegano image can not be saved using JPEG as JPEG is a lossy format. That is stegano saves in the lowest color bits of the image, but JPEG wipes out those bits with its lossy compression!
here is my - all in one - version using 'logo:' as the image to be processed.
Code: Select all
convert logo: \
\( -background white label:"username" -rotate -30 -write mpr:tile \) \
\( -clone 0 -tile mpr:tile -draw 'color 0,0 reset' \) \
\( -clone 0,2 -define compose:args=30x100 -compose dissolve -composite \) \
-delete 0,1 miff:- |\
composite miff:- -stegano +15+2 result.png
Note the miff: pipeline has two images in it, in the order: wartermark image , background image
I was supprised that -stegano was only available in "composite" command -- I thought it was available in "convert" but it seems that was not the case! I'll have to see about rolling it into "convert" as part of the IMv7 Shell API project (in alpha development).
For information the above style of image processing see
IM examples, Basics, Parenthesis
http://www.imagemagick.org/Usage/basics/#parenthesis
and Complex Image Processing and Debugging
http://www.imagemagick.org/Usage/basics/#complex
For in-memory image tiling (over another image) see
Canvas Creation, Tiling with an Image already In Memory
http://www.imagemagick.org/Usage/canvas/#tile_memory
And Dissolve Composition
http://www.imagemagick.org/Usage/compose/#dissolve