After some further testing, the draw text is better done as follows:

-draw "translate 50,10 rotate 30 gravity center  text 0,0 'W'" \

where I have inserted gravity center making the translate relative to 
that point.

Using my method below it was hard figuring out what translate to 
apply as it was inconsistent.






>Here is an example. You will have to randomize the rotation and
>translation as well as the characters.
>
>convert -size 290x70 xc:white -bordercolor black -border 5 \
>       -fill black -stroke black -strokewidth 1 -font TimesNewRoman
>-pointsize 48 \
>       -draw "rotate 30 translate 40,30 text 0,0 'A'" \
>       -draw "rotate -10 translate 65,50 text 0,0 'n'" \
>       -draw "rotate 5 translate 110,40 text 0,0 '3'" \
>       -draw "rotate -20 translate 130,100 text 0,0 'c'" \
>       -draw "rotate -5 translate 190,70 text 0,0 'x'" \
>       -draw "rotate 10 translate 240,10 text 0,0 'H'" \
>       -fill none \
>       -strokewidth 2 -draw "bezier 20,70 45,10 100,70 140,10 " \
>       -strokewidth 3 -draw "polyline 150,20 200,60 280,30 " \
>       captcha.gif
>
>see http://www.fmwconcepts.com/misc_tests/captcha.gif
>
>
>
>
>>Hello,
>>
>>Are there any example command which can generate Yahoo like captcha
>>text image, or similar?
>>
>>E.g.
>>
>>http://libcaca.zoy.org/browser/pwntcha/testsuite/yahoo/yahoo_053.jpeg
>>
>>Howard
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to