title: Convert PPM to JPG or BMP in java
body: <p>I need to know how feasible is it to write a function in java to read a ppm file and convert it to <code>jpg</code> or <code>bmp</code> format.
  Anyone has experience with this? I am able to achieve the goal using tools such as <code>ImageMagick</code> but I want to do it in pure <code>Java</code> way.</p>