Save as BMP produces incorrect resolution
When I save bitmap file with 1 bit depth to .BMP, resolution of the resulting file becomes 72dpi regardless of original resolution. Actual dimensions in pixels are preserved, but decreasing the resolution causes dimensions in inches to be incorrect. When I save file manually, using save as dialogue there is no problem with the resulting resolution.
This is the code I am using to save. Is it possible to fix this problem and are you even able to reproduce it? Try creating a file with resolution 300/600dpi and running this function
function save() {
var saveBMP = new BMPSaveOptions();
saveBMP = new BMPSaveOptions();
//saveBMP.alphaChannels = false;
saveBMP.depth = BMPDepthType.ONE;
//saveBMP.flipRowOrder = false;
//saveBMP.rleCompression = false;
saveBMP.osType = OperatingSystem.OS2;
app.activeDocument.saveAs( new File('~/Desktop/test.bpm'), saveBMP, true, Extension.LOWERCASE);
}
Thank you
