Closed
Description
When loading some BMPs and saving it back as JPEG-XL, vips experiences out-of-memory issues.
Interestingly, the issue is only present when vips has been configured with magick-package=GraphicsMagick
and only occurs with JPEG-XL outputs - saving the same BMP as PNG/JPEG/etc works just fine.
As mentioned above, magick-package=ImageMagick
is fine as well.
Reproducer:
test.bmp.zip
$ file test.bmp
test.bmp: PC bitmap, Windows 3.x format, 30 x 10 x 24, image size 920, resolution 3779 x 3779 px/m, cbSize 974, bits offset 54
Steps:
$ meson setup --prefix=/usr/local -Dmagick-package=GraphicsMagick build/
$ meson install -C build/
$ vips copy test.bmp out.jxl
/usr/local/bin/vips copy test.bmp out.jxl
zsh: killed /usr/local/bin/vips copy test.bmp out.jxl
Saving the same BMP as PNG works just fine:
$ vips copy test.bmp out.png
$ file out.png
out.png: PNG image data, 30 x 10, 8-bit grayscale, non-interlaced
GraphicsMagick: v1.3.41
libjxl: v0.8.2
libvips: current master (5fb9f61)