diff --git a/anytopnm b/anytopnm index cc6d57e..207b5ce 100755 --- a/anytopnm +++ b/anytopnm @@ -61,7 +61,7 @@ filetype=`file "$file" | cut -d: -f2-` case "$filetype" in - *PBM* | *PGM* | *PPM* ) + *PBM* | *PGM* | *PPM* | *Netpbm* ) cat "$file" ;; @@ -99,14 +99,6 @@ case "$filetype" in giftopnm "$file" ;; - *TIFF* ) - tifftopnm "$file" - ;; - - *IFF*ILBM* ) - ilbmtoppm "$file" - ;; - *Lisp* ) lispmtopgm "$file" ;; @@ -145,6 +137,14 @@ case "$filetype" in bmptoppm "$file" ;; + *TIFF* ) + tifftopnm "$file" + ;; + + *IFF*ILBM* ) + ilbmtoppm "$file" + ;; + * ) # Can't figure out the file type from the magic number, # try the extension.