Overlaying Noise
Posted: 2015-08-26T02:16:51-07:00
Hi,
I'm trying to create create an image with noise and do it with one combined command, but am having issues.
The image is simply text (i.e. ABCD) and I want to overlay black and white noise to obscure the letters
First creating the text on its own image...
Next create the black and white noise...
If I want to draw the letters on the noise...
...but this isn't what I want as the noise is under the letters, not over them...
If I reverse the commands however the noise completely covers the letters (as there is no transparency) so I do not see them at all using the following command
I tried using -transparent white, but this didn't help. I believe of the xc canvas creation for the noise is swamping the previously defined text. I imagine I need to use parenthesis to separate the layers while they are created and then somehow glue them back together...but I'm not sure how to do it properly.
Can someone please tell me how to correct this, or a better way of accomplishing my goal?
Ammendment: Running 6.9.1 Q16 (64 bit) via DOS command line
Paul.
I'm trying to create create an image with noise and do it with one combined command, but am having issues.
The image is simply text (i.e. ABCD) and I want to overlay black and white noise to obscure the letters
First creating the text on its own image...
Code: Select all
convert -size 100x100 xc:none -pointsize 35 -gravity center -draw "text 0,0 'ABCD' " test.png
Code: Select all
convert -size 100x100 xc: +noise random -channel G -threshold 25% -negate -channel RG -separate +channel -compose CopyOpacity -composite test2.png
Code: Select all
convert -size 100x100 xc: +noise random -channel G -threshold 25% -negate -channel RG -separate +channel -compose CopyOpacity -composite -pointsize 35 -gravity center -draw "text 0,0 'ABCD' " test3.png
If I reverse the commands however the noise completely covers the letters (as there is no transparency) so I do not see them at all using the following command
Code: Select all
convert -size 100x100 xc:none -pointsize 35 -gravity center -draw "text 0,0 'ABCD' " xc: +noise random -channel G -threshold 25% -negate -channel RG -separate +channel -compose CopyOpacity -composite test4.png
Can someone please tell me how to correct this, or a better way of accomplishing my goal?
Ammendment: Running 6.9.1 Q16 (64 bit) via DOS command line
Paul.