Open clydeshaffer opened 2 months ago
Here's a minimal repro use case
const BMP = require('bitmap-manipulation');
let imageFromGIMP = BMP.BMPBitmap.fromFile("track_gimp.bmp");
imageFromGIMP.save("gimp_out.bmp");
let imageFromAseprite = BMP.BMPBitmap.fromFile("track_aseprite.bmp");
imageFromAseprite.save("aseprite_out.bmp");
After investigating further with the original issue reporter, the GIMP files will be read correctly if they were exported with the "Do not write color space information" option selected under Compatibility.
When opening a BMP file saved in GIMP it looks like the header is not interpreted correctly, causing it to read pixel data too early in the file. The same BMP file is fixed when opening it and re-saving it in Aseprite.
track_bmps.zip