} else if( fileName.endsWith("pgm") || fileName.endsWith("PGM") ) { GrayU8 gray = ConvertBufferedImage.convertFrom(img, (GrayU8) null); savePGM(gray, fileName); }else throw new IllegalArgumentException("No writer appropriate found");
} else if( fileName.endsWith("pgm") || fileName.endsWith("PGM") ) { GrayU8 gray = ConvertBufferedImage.convertFrom(img, (GrayU8) null); savePGM(gray, fileName); }else throw new IllegalArgumentException("No writer appropriate found");