JDeli is able to convert PSD to BMP image files.
- Read PSD image into Java
BufferedImage image = JDeli.read(psdImageFile);
Process image if needed
- Write out Java image as BMP
File bmpImageFile = new File("Image.bmp"); JDeli.write(image, "bmp", bmpImageFile);
JDeli can also do this in ONE step with the convert method. You can also do this by reading a PSD image and then writing the image as BMP, which is useful if you want to process the image in some way.
java -jar jdeli.jar --convert bmp "inputFileOrDir" "outputDir"
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 different image compression options), JDeli also provides overloaded methods. These can be used to supply conversion options for more control over the conversion process.