(***********************************************************************)
(*                                                                     *)
(*                           Objective Caml                            *)
(*                                                                     *)
(*            Jun Furuse, projet Cristal, INRIA Rocquencourt           *)
(*                                                                     *)
(*  Copyright 1999,2000,2001,2002,2001,2002                            *)
(*  Institut National de Recherche en Informatique et en Automatique.  *)
(*  Distributed only by permission.                                    *)
(*                                                                     *)
(***********************************************************************)
open Image
open Info

let _ =
  Arg.parse [] (fun s ->
    try
      let f,h = file_format s in
      Printf.printf "%s %s %dx%d\n" 
	s (extension f) h.header_width h.header_height
    with
    | _ -> 
	Printf.printf "%s ???\n" s) "imgstat files"
;;
