(***********************************************************************)
(*                                                                     *)
(*                           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 OImage
open Gif

let load_first name opts =
  OImage.make (Gif.load_first name opts)
;;

let save_image name opts image =
  let img = image#image in
  match img with
    Image.Index8 bmp ->
      Gif.save_image name opts img
  | _ -> raise Wrong_image_class
