[Tutor] code to generate my own text captchas

Steven D'Aprano steve at pearwood.info
Thu Oct 25 01:26:09 CEST 2012

On 25/10/12 08:05, Tsila Hassine wrote:
> Hello all,
> I am looking for simple python code that will take a given string and
> distort it, captcha like.

You won't find any such simple code, because distorting images is not

This is a mailing list for learning how to program in the Python
programming language, not for asking random questions that may have some
vague connection to Python. For specialist questions like image distortion,
you are better off asking on more specialist mailing lists.

Start off by using the search engine of your choice, such as Duck Duck Go,
Bing, Blekko, Google, Yahoo or Million Short, to search for Python
libraries for captchas and image manipulation. Then ask your questions on
the specific mailing list for that library, if it has one.

If all else fails, try asking on the general Python mailing list, which
has a lot more people, and you might get lucky and find somebody who can
answer your question. Either:

email: python-list at python.org
news: comp.lang.python

To get you started, there are at least two powerful image manipulation
libraries for Python, PIL and PythonMagickWand.


PythonMagickWand is a wrapper around ImageMagick, so this page on
image distortions may help:


Good luck!

P.S. I found those links with literally fifteen seconds of googling. If
you don't make any effort to search out your own information first,
you almost certainly will not be taken seriously with your questions.


More information about the Tutor mailing list