* @return true if file is an uncompressed TIFF
*/
public static boolean isUncompressedTiff(String file) {
File f = new File(file);
FileInfo[] fi = null;
TiffDecoder ti = new TiffDecoder(f.getParent() + "/", f.getName());
try {
fi = ti.getTiffInfo();
} catch (IOException e) {
return false;
}
if (fi[0].compression == 1) {
return true;