Odd behavior: -annotate
Posted: 2012-09-19T12:49:24-07:00
This will create a 1-bit TIFF with a white background and black text:
This will create the same image without the text:
However, I can't annotate the justcanvas.tif file with this code:
My understanding of the commands is that the "-size 3000x300 -depth 1 canvas:white" portion of the first command simply creates the canvas on which the annotation resides. Replacing that portion of the code with an existing image, however, does not result in an annotated image?
I'm assuming it has to do with the bit depth, because if I omit the "-depth 1" from those same commands, it works fine. I'm sure I'm missing something obvious, but I just can't see what it is! These annotations are going to be merged with gigantic 1-bit TIFF images eventually so I need this to work in 1-bit.
Thanks for any help you can give!
-Brian
Code: Select all
convert -size 3000x300 -depth 1 canvas:white -gravity east -stroke none -fill black -pointsize 200 -annotate 0 "TEST STRING" withtext.tif
Code: Select all
convert -size 3000x300 -depth 1 canvas:white justcanvas.tif
Code: Select all
convert justcanvas.tif -gravity east -stroke none -fill black -pointsize 200 -annotate 0 "TEST STRING" annotated.tif
I'm assuming it has to do with the bit depth, because if I omit the "-depth 1" from those same commands, it works fine. I'm sure I'm missing something obvious, but I just can't see what it is! These annotations are going to be merged with gigantic 1-bit TIFF images eventually so I need this to work in 1-bit.
Thanks for any help you can give!
-Brian