python - 为什么 Django-Simple-Captcha 图像扭曲?

标签 python django captcha

请参阅我之前发布的相关问题:While upgrading python imaging library (PIL), it tells me "JPEG support not available"

我安装了 Pillow 而不是 PIL 来让 Django-Simple-Captcha 正常工作。现在显示图像。 但正如您在本页底部看到的,它被严重扭曲,基本上无法阅读且无用: http://predictstat.com/accounts/register/

我不知道为什么现在会发生这种情况,也不知道如何解决它。有人可以建议一下吗?

最佳答案

发生这种情况是因为我使用的是 Pillow 2.2.2。

Django-simple-captcha 似乎无法使用该版本的 Pillow。于是我安装了Pillow 2.0,断线问题就解决了!请参阅:http://github.com/mbi/django-simple-captcha/pull/50

关于python - 为什么 Django-Simple-Captcha 图像扭曲?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20753865/

相关文章:

python - Elasticsearch analytics()与Python中的Spark不兼容?

python - Django:clean_ 发生了奇怪的事情

linux - 通过前端创建FTP账号

php - 谷歌 reCAPTCHA 不工作

asp.net-mvc - ASP.NET MVC 验证码

actionscript-3 - 在 Flash 中实现验证码

python - 开始使用 Git Python

python - 如何创建 Spark udf 将 float 插值到 INT 以及如何编写比我所做的更好的逻辑

python - 如何通过颜色图为轮廓标签着色?

python - 这个 `if` 条件是否曾经运行过?