Page 1 of 1
Help With Text Coloring
Posted: 2018-01-06T10:08:05-07:00
by dononyx
This used to work in IM 6.9
convert $f -font Arial -pointsize 80 -quiet -draw "gravity center rotate 45 fill #80808080 text 0,12 'Licensed to Property Insight by Cook County Recorder of Deeds'" $CUSTOMER_DIR/$THE_DATE/$(basename $f);
In IM 7 it splits the image in 2
I tried this in IM 7
convert $f -font Arial -pointsize 120 -fill "#080" -draw "gravity center rotate 45 text 0,12 'Licensed to Property Insight by Cook County Recorder of Deeds'" $CUSTOMER_DIR/$THE_DATE/$(basename $f);
but I cannot for the life of me figure out how to make the text gray again (it is light green). Multiple Combinations give either R, G, or B, or Gray.
Re: Help With Text Coloring
Posted: 2018-01-06T10:33:05-07:00
by fmw42
IM 7 uses magick not convert? Please post your full IM versions (for 6 and 7) and platform and your input image.
#80808080 is gray with alpha, but #080 is opaque green. So you are not using the same colors. Perhaps you mean #888, but that is converted to #888888, which is not the same as #80808080. See
http://www.imagemagick.org/script/color.php
Re: Help With Text Coloring
Posted: 2018-01-06T10:41:15-07:00
by fmw42
I get identical result using IM 6.9.9.31 and 7.0.7.19 Mac OSX Sierra for
Code: Select all
convert logo: -font Arial -pointsize 80 -quiet \
-draw "gravity center rotate 45 fill #80808080 text 0,12 \
'Licensed to Property Insight by Cook County Recorder of Deeds'" \
result6.png
Code: Select all
magick logo: -font Arial -pointsize 80 -quiet \
-draw "gravity center rotate 45 fill #80808080 text 0,12 \
'Licensed to Property Insight by Cook County Recorder of Deeds'" \
result7.png
And so do these. Note these have pointsize 120 whereas above has pointsize 80. Note also I have use the same fill color here as above.
Code: Select all
convert logo: -font Arial -pointsize 120 -fill "#80808080" \
-draw "gravity center rotate 45 text 0,12 \
'Licensed to Property Insight by Cook County Recorder of Deeds'" \
result6.png
Code: Select all
magick logo: -font Arial -pointsize 120 -fill "#80808080" \
-draw "gravity center rotate 45 text 0,12 \
'Licensed to Property Insight by Cook County Recorder of Deeds'" \
result7.png
Re: Help With Text Coloring
Posted: 2018-01-06T10:48:00-07:00
by dononyx
magick does the same thing. Version: ImageMagick 7.0.7-19 Q16 x86_64 2018-01-06
http://www.imagemagick.org on a Mac with Sierra.
IM 6 is 6.9.5-9_2. When I try to use the #80808080 in the fill command, the convert gives me 50% of the page (left half). When I use #8080 I get the watermark but only the left half. It's weird. Just tried magick convert for kicks but did the same thing. It seems like its cropping?????
Re: Help With Text Coloring
Posted: 2018-01-06T10:51:44-07:00
by fmw42
ImageMagick will not draw beyond the dimension of the input image. With the larger pointsize it may be off the image. If you post your image to some free hosting service such as dropbox.com and put the URL here, I can test your exact conditions. Post your two results also and the exact commands for one given image, so we can see what you say is wrong?
What do you get from
convert -version on IM 6 and magick -version on IM 7?
Do you have freetype installed?
Re: Help With Text Coloring
Posted: 2018-01-06T11:16:59-07:00
by dononyx
Installed it with Homebrew. Dropbox does not support tiff. Freetype is installed. I set up an ftp for upload use Firefox as Safari loses its mind.
ftp://img:img@75.149.200.204/
Re: Help With Text Coloring
Posted: 2018-01-06T11:38:21-07:00
by fmw42
I can confirm that it cuts off the right side of the page when saving to tif. It works fine when saving to gif. This happens in both IM 6 and IM 7
Re: Help With Text Coloring
Posted: 2018-01-06T11:45:16-07:00
by dononyx
Any ideas?? I need tiff
Re: Help With Text Coloring
Posted: 2018-01-06T11:50:15-07:00
by fmw42
I will report the bug. I have found no workaround yet.
Re: Help With Text Coloring
Posted: 2018-01-06T11:59:05-07:00
by fmw42
It seems to work fine if I re-add -compress Group4 in the command line.
Code: Select all
convert 1719519015.tif -font Arial -pointsize 120 -fill "#80808080" \
-draw "gravity center rotate 45 text 0,12 \
'Licensed to Property Insight by Cook County Recorder of Deeds'" \
-compress Group4 watermark6.tif
Code: Select all
magick 1719519015.tif -font Arial -pointsize 120 -fill "#80808080" \
-draw "gravity center rotate 45 text 0,12 \
'Licensed to Property Insight by Cook County Recorder of Deeds'" \
-compress Group4 watermark7.tif
Re: Help With Text Coloring
Posted: 2018-01-06T12:08:34-07:00
by dononyx
You SIR are a GOD! Thanks SOOO MUCH!