summaryrefslogtreecommitdiff
path: root/ws2a/gencaptcha.c
blob: 74a7e9658c8dd9c25967ab72fd83b25bc927a4b7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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);
  }
}