diff options
| author | Alexander Pickering <Apickx@cogarr.org> | 2016-05-09 20:43:02 -0400 |
|---|---|---|
| committer | Alexander Pickering <Apickx@cogarr.org> | 2016-05-09 20:43:02 -0400 |
| commit | e86dc9d8cd470bb0ff7d5c2188ed401cda9e0f26 (patch) | |
| tree | 99fe1cb8daa12e0d0554313a985751f16e559d46 /ws2a/gencaptcha.c | |
| parent | 152ffc6eec962029e48c0fbb63c97eefb79ea4c6 (diff) | |
| parent | 6b1d7a5daacfd3c8fa4eacd0d95af26c7ec851a0 (diff) | |
| download | webpage-e86dc9d8cd470bb0ff7d5c2188ed401cda9e0f26.tar.gz webpage-e86dc9d8cd470bb0ff7d5c2188ed401cda9e0f26.tar.bz2 webpage-e86dc9d8cd470bb0ff7d5c2188ed401cda9e0f26.zip | |
Merge branch 'development'
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); + } +} |
