Search code examples
javabmpppm

Convert PPM to JPG or BMP in java


I need to know how feasible is it to write a function in java to read a ppm file and convert it to jpg or bmp format. Anyone has experience with this? I am able to achieve the goal using tools such as ImageMagick but I want to do it in pure Java way.


Solution

  • I would search for ImageMagick Application Programmer Interfaces. They have interfaces for every significant language.

    I find the Java philosophy is to extensively research what already exists, find the best solution for your needs, then write the minimal code needed to interface to it. This is a pure Java way.