IM 6.5.1 -> 6.5.7: Where have all the colors gone?

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
takku
Posts: 2
Joined: 2010-05-02T04:27:18-07:00
Authentication code: 8675308

IM 6.5.1 -> 6.5.7: Where have all the colors gone?

Post by takku »

To be brief: I have successfully used IM to print date (from EXIF) to images. After upgrading from 6.5.1 to 6.5.7 I lost the ability to control the color of text to be written to images. At the same time (k)ubuntu upgraded from 9.04 to 10.04, but I feel like I should still be able to select color with IM.

Command I use is:

Code: Select all

convert \
-font Bookman-DemiItalic \
-pointsize ${FONTSIZE} \
-draw "text ${image_x1},${image_y1} \"${text}\"" \
-channel RGBA -fill "${color}" -stroke black \
"kuva.jpg" "slices/kuva-${color}.jpg"


Color is given values as names of colors (e.g. yellow, coral3, etc..).

And every color I have tried will produce black text. I have tried rgb-values, I have copied colors.xml from previous version. And basically I just don't know what to try next. Any help is highly appreciated.
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: IM 6.5.1 -> 6.5.7: Where have all the colors gone?

Post by snibgo »

In recent versions of IM, commands are ususally executed sequentially, so try setting the channel and colours BEFORE the draw command.
snibgo's IM pages: im.snibgo.com
takku
Posts: 2
Joined: 2010-05-02T04:27:18-07:00
Authentication code: 8675308

Re: IM 6.5.1 -> 6.5.7: Where have all the colors gone?

Post by takku »

That did it! Thank you very very much!
Post Reply