Developer's Daily | Unix by Example |
main | java | perl | unix | dev directory | web log |
anytopnm - attempt to convert an unknown type of image file to a portable anymap |
anytopnm file |
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, punts. The type of the output file depends on the input file. |
pnmfile(1), pnm(5), file(1) |
It’s a script. Scripts are not portable to non-Unix environments. |
Copyright (C) 1991 by Jef Poskanzer. |