diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-09 20:45:24 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2016-05-09 20:45:24 -0400 |
| commit | 6b1d7a5daacfd3c8fa4eacd0d95af26c7ec851a0 (patch) | |
| tree | f4d70a82e6d578ae29d4e089b916ad8ba66f3b15 /ws2a/gencaptcha.c | |
| parent | b3cf7990c4dfe30eebabdfd282d42adf3c521704 (diff) | |
| download | webpage-6b1d7a5daacfd3c8fa4eacd0d95af26c7ec851a0.tar.gz webpage-6b1d7a5daacfd3c8fa4eacd0d95af26c7ec851a0.tar.bz2 webpage-6b1d7a5daacfd3c8fa4eacd0d95af26c7ec851a0.zip | |
Starting working on captcha
Diffstat (limited to 'ws2a/gencaptcha.c')
| -rw-r--r-- | ws2a/gencaptcha.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/ws2a/gencaptcha.c b/ws2a/gencaptcha.c new file mode 100644 index 0000000..74a7e96 --- /dev/null +++ b/ws2a/gencaptcha.c @@ -0,0 +1,24 @@ +#include <stdio.h> +#include <stdlib.h> +#include <string.h> + +//convert label.png -virtual-pixel White -distort Arc 60 arctest.png + +//convert -background gray -fill cyan -pointsize 72 label:Alex label.png + +//convert label.png -virtual-pixel white -distort Barrel "0.2 0.0 0.0 1.0" barrel.png + +int main(){ + FILE* imgfile; + imgfile = fopen("../ws2a/testcaptcha.png","r"); + if(imgfile == NULL){ + return 1; + } + while(!feof(imgfile)){ + char c = fgetc(imgfile); + if(feof(imgfile)){ + return 0; + } + putchar(c); + } +} |
