http://www.cit.gu.edu.au/~anthony/software/imagick_type_gen.pl
