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

#ifndef __PNMUTILS_H
#define __PNMUTILS_H

struct image_params
{
  char * filename;
  int width;
  int height;
  int max_val;
  int type;
  unsigned int numberOfImages;
  float exponent;
};

extern char *imageComments;

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);
#endif