Page 1 of 1

white text on gray background problem

Posted: 2009-07-08T00:28:11-07:00
by gildir
I'm trying to draw white text on a gray background. So far, whenever I do this, I get gray text instead of white. The same command works perfectly on a bright green or bright blue background, though on a black background the text disappears completely. Here's the command I'm using:

convert -quality 100 -draw " fill cmyk(0,0,0,0) font 'SabonLT Bold.TTF' font-weight 400 gravity North rotate 0 font-size 38 text 0,55 'test,'" "07-07-23-03-23.jpg" "07-07-23-03-23.jpg"

Any help would be appreciated. I've fiddled around with some commands which sounded like they might work (-alpha off, -opaque white) and I've tried specifying the color as rgb and rgba, but I'm very new at this and I may be on the completely wrong track.

Re: white text on gray background problem

Posted: 2009-07-12T20:53:10-07:00
by anthony
gildir wrote:I'm trying to draw white text on a gray background. So far, whenever I do this, I get gray text instead of white. The same command works perfectly on a bright green or bright blue background, though on a black background the text disappears completely. Here's the command I'm using:

convert -quality 100 -draw " fill cmyk(0,0,0,0) font 'SabonLT Bold.TTF' font-weight 400 gravity North rotate 0 font-size 38 text 0,55 'test,'" "07-07-23-03-23.jpg" "07-07-23-03-23.jpg"

Any help would be appreciated. I've fiddled around with some commands which sounded like they might work (-alpha off, -opaque white) and I've tried specifying the color as rgb and rgba, but I'm very new at this and I may be on the completely wrong track.
Draw does not draw in CMYK, only RGB. that would be the cause of the problem.

better to use -annotate instead in any case!

See
http://www.imagemagick.org/Usage/text/#annotate

Re: white text on gray background problem

Posted: 2009-07-22T14:42:47-07:00
by gildir
I have already tried that, RGB and hex do not solve this problem. Text still seems to become transparent. Also, as I said, it works fine on a bright green or bright blue background.

Re: white text on gray background problem

Posted: 2009-07-22T18:11:54-07:00
by anthony
gildir wrote:I have already tried that, RGB and hex do not solve this problem. Text still seems to become transparent. Also, as I said, it works fine on a bright green or bright blue background.
The HEX needs to be for CMYK! Whcih can be very tricky. I suggest you don't use CMYK for this type of thing.