Page 1 of 1

Draw and Annotate adding extra channel to image

Posted: 2015-04-24T11:30:34-07:00
by Geo_user
When I add text to a tiff image using draw or annotate an extra channel is created in the output image. Is there anyway to add text to a tiff without doing so?

Here's how I'm adding the text and a screenshot of the image properties as reported by Irfanview. Image on the left is the original and the right is the annotated. I also noticed that the output file size is smaller even though I've disabled compression. Anyone have any ideas why that would be?

Code: Select all

convert filename.tif -compress none font Arial -fill white -pointsize 90 -gravity south -annotate +50+50 "Text" "filename_anno.tif"
http://i.imgur.com/MKiEBSi.jpg

I'm using version 6.9.1-2 Q16

Thanks

Re: Draw and Annotate adding extra channel to image

Posted: 2015-04-24T11:52:54-07:00
by snibgo
Insert "-alpha off" before the output filename to prevent IM from writing an alpha channel.

Don't use double hyphen in "-compress none".

Re: Draw and Annotate adding extra channel to image

Posted: 2015-04-24T11:56:22-07:00
by Geo_user
I had tried using "-alpha off" without success but I didn't have it just before the output filename. The double hyphen on compress was a typo, it was never in my command line. Working as expected now, thanks!