java save jpg as png

I have an image on disk which is a jpg file . I want to convert and save it as png and delete original jpg. Whats best way to do this in java?

String justNameJpg = "something.jpg";
String justNamePng = ImageEditor.GetImageNameNoExtension(justName) + "." + "png";
java.awt.image.BufferedImage bufferedImage = File(folder, justNameJpg));
ImageIO.write(bufferedImage, "png", new File(folder, justNamePng));


If you want to use ImageIO this should work:

ImageIO.write(image, "png", new File("new output file name")); 

Need Your Help

Scheme (DrRacket) - Outputting an entire Structure

scheme structure racket

I'm fairly new to Scheme and I'm using DrRacket and I hope to get some much needed assistance.

WCF Service - MaxReceivedMessageSize Error


I have my WCF Service hosted in Windows Service. The client application is a website project to which I add Service reference.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.