Hi Mathew, I am using the turing package to try and create captcha
images, i use the code:
ti = Turing::Image.new(:width => 280, :height => 115)
ti.generate(File.join(Dir.getwd, ‘a.jpg’), “randomword”)
The image is generated fine, but the text is unreadably small.
On 3/20/07, Pingu P. [email protected] wrote:
What am i doing wrong? the text being rendered is very very small.
I have posted an example on www.reapfuels.co.uk,
Maybe explaining what you are trying to do would help?
Pingu P. wrote:
Hi Mathew, I am using the turing package to try and create captcha
images, i use the code:
ti = Turing::Image.new(:width => 280, :height => 115)
ti.generate(File.join(Dir.getwd, ‘a.jpg’), “randomword”)
The image is generated fine, but the text is unreadably small.
RTFM:
http://turing.rubyforge.org/classes/Turing/Image.html
Thats exactly what i followed.
Thanks Daniel, i have looked at that method, but its private, i dont
think i am supposed to use it.
Hi,
Am Mittwoch, 21. Mär 2007, 19:59:21 +0900 schrieb Pingu P.:
Thanks Daniel, i have looked at that method, but its private, i dont
think i am supposed to use it.
See section “plugins”.
Bertram
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Pingu P. wrote:
Hi Mathew, I am using the turing package to try and create captcha
images, i use the code:
ti = Turing::Image.new(:width => 280, :height => 115)
ti.generate(File.join(Dir.getwd, ‘a.jpg’), “randomword”)
The image is generated fine, but the text is unreadably small.
Hence, a better subject line would be: “Captcha generated by Turing
package is
unreadably small” which might catch the attention of people who can
help.
See also: How To Ask Questions The Smart Way
David M.
Maia Mailguard - http://www.maiamailguard.com
Morton Software Design and Consulting - http://www.dgrmm.net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFGAWkUUy30ODPkzl0RAlmWAJ9cUJFwMr3MVyBG7EmeGb1cco3KiwCgzZtE
ookYUHc+fa5oY7e/DVsiXFU=
=Cich
-----END PGP SIGNATURE-----
On 3/21/07, Pingu P. [email protected] wrote:
Thats exactly what i followed.
–
Posted via http://www.ruby-forum.com/.
never used this, but have you tried playing with the
req_size option in the write_string method? it’s about the only thing
I
could see in the manual in my 2 sec look