Draw and Annotate adding extra channel to image

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
Geo_user
Posts: 2
Joined: 2015-04-24T09:20:23-07:00
Authentication code: 6789

Draw and Annotate adding extra channel to image

Post 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
Last edited by Geo_user on 2015-04-24T11:56:30-07:00, edited 1 time in total.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Draw and Annotate adding extra channel to image

Post 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".
snibgo's IM pages: im.snibgo.com
Geo_user
Posts: 2
Joined: 2015-04-24T09:20:23-07:00
Authentication code: 6789

Re: Draw and Annotate adding extra channel to image

Post 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!
Post Reply