package examples; import java.awt.image.BufferedImage; import java.io.File; import javax.imageio.ImageIO; public class ImageUtil { public static void main(String[] args) throws Throwable { File inputFile = new File("/tmp/1.tif"); File outputFile = new File("/tmp/1.png"); BufferedImage image = ImageIO.read(inputFile); ImageIO.write(image, "png", outputFile); } }
No comments:
Post a Comment