I have been trying to load an image into QImage. The original image is a "tif", so I converted to a pnm format (supported by QT). I then call up up the following code

Qt Code:
  1. QString fileName = "<FileName>";
  2. QImage Image = QImage(fileName,"PNM");
  3. int width = Image.width();
  4. QVariant wid = width
  5. debugLineEdit->setText(wid.toString());
To copy to clipboard, switch view to plain text mode 

The width comes out as 0. So I used the

bool Qimage::load() to verify if the image was loading and it is false. Does anyone have any idea why I wouldn't be able to load a PNM Image. Otherwise, if anyone knows a better way to access the information from a TIF format?

Thank you guys