import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class Converter
{
public static void main( String[] args )
{
File source = new File( "bild.gif" );
File target = new File( "bild.jpg" );
if( source.exists() )
{
try
{
BufferedImage image = ImageIO.read(source);
ImageIO.write( image, "jpg", target );
}
catch( IOException e )
{
System.out.println(e);
}
}
}
}