anytopnm — Attempt to convert an unknown type of image file to a portable anymap
anytopnm uses the file program, possibly augmented by the magic numbers file included with PBMPLUS, to try to figure out what type of image file it is. If that fails (very few image formats have magic numbers), looks at the filename extension. If that fails, punt.
The type of the output file depends on the input file.