#include <stdio.h>
#include <zlib.h>
#include "file.h"

struct image_params {

  char * filename;
  int width;
  int height;
  /* max_val is the maximum colour component value - often 255 */
  int max_val;
  /* type is either '5' to indicate a P5 file or '6' to indicate a P6 file */
  int type;
  unsigned int numberOfImages;
  float exponent;
};

void get_image_params(File * ifs, struct image_params * params);

void get_image_type(File * ifs, struct image_params * params);
void get_image_params_preserve_comments(File * ifs, struct image_params * params, File *ofs);
