JDeli is able to convert JPEG200 to BMP image files.
JDeli can do this in ONE step with the convert method. You can also do this by reading a JPEG2000 image and then writing the image as BMP, which is useful if you want to process the image as well.
Convert any images to BMP from Command Line or another language
java -jar jdeli.jar --convert bmp "inputFileOrDir" "outputDir"
Single step method to convert from PNG into BMP image in Java
JDeli.convert(File inFile, File outFile);
JDeli.convert(InputStream inFile, OutputStream outfile, String format);
byte outputData = JDeli.convert(byte inputData, String format);
Depending on the image formats being converted (ie set compression level in Tiff files), JDeli also provides overloaded methods. These can be used to supply conversion options for more control over the conversion process.
Read / Write methods for converting from JPEG2000 into BMP image in Java
1. Read JPEG2000 image into Java
BufferedImage image = JDeli.read(imageFile);
Jpeg2000Decoder decoder = new Jpeg2000Decoder();
BufferedImage image = decoder.read(data);
2. Process image
3. Write out Java image as BMP
File myNewBmpFile = new File("ImageAsBmp.bmp"); JDeli.write(image, "bmp", myNewBmpFile);
BmpEncoder encoder = new BmpEncoder();