is it possible to add a label/text without an alpha channel

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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: is it possible to add a label/text without an alpha channel

Post by fmw42 »

Apparently your input images are RGBA. If so, try removing the alpha channel by adding -channel RGB after your <inputFile> or before your <outputFile>
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: is it possible to add a label/text without an alpha channel

Post by anthony »

-channel is a setting and only effect operators.

If you don't want an alpha channel in your output images. remove it with +matte before saving the image.

See IM Examples, Basics, Controling transparency
http://imagemagick.org/Usage/basics/#alpha
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply