简单是可取的,但如果最简单的方法是使用第三方库,那么我会考虑这个解决方案.
public static void main(final String[] args) throws Exception { final BufferedImage tif = ImageIO.read(new File("test.tif")); ImageIO.write(tif,"png",new File("test.png")); }