title: converting bmp to jpg in java
body: <p>How do you convert bmp to jpg in Java? I know how to use the <code>ImageIO</code> way but is there a much faster or better way of doing it?</p>
  
  <p>This is the ImageIO way of doing that I found on the web.</p>
  
  <pre><code>`//Create file for the source  
  File input = new File("c:/temp/image.bmp");  
  
  //Read the file to a BufferedImage  
  BufferedImage image = ImageIO.read(input);`
  
  //Create a file for the output  
  File output = new File("c:/temp/image.jpg");  
  
  //Write the image to the destination as a JPG  
  ImageIO.write(image, "jpg", output);
  </code></pre>
  
  <p>If I use this way will I lose quality?</p>
  
  <p>Thanks</p>