Magick.net: BUG: issue with using BMP files that are visible in other image libraries / viewers

Created on 7 Jul 2020  路  2Comments  路  Source: dlemstra/Magick.NET

Original issue: https://github.com/d2phap/ImageGlass/issues/708

Error: length and filesize do not match (filename) @ error/bmp.c/ReadBMPImage/846

Version: 7.20.0.1 (and older)

A user of https://github.com/Kosalos/Fractal2New reported to https://github.com/d2phap/ImageGlass/ that their fractal images were failing to load correctly in ImageGlass, even though the BMP files would load in other image viewers. ImageGlass uses this library to do a lot of the image rendering work. @d2phap suggested we let you all know about this occurrence; @fire-eggs was working with the original reporter of the issue. Thanks!

Most helpful comment

The next version of Magick.NET will include a new class called BmpReadDefines and you can use that to enable the option IgnoreFileSize. You will then be able to read the BMP image without any issues.

All 2 comments

The next version of Magick.NET will include a new class called BmpReadDefines and you can use that to enable the option IgnoreFileSize. You will then be able to read the BMP image without any issues.

The new version has just been published.

Was this page helpful?
0 / 5 - 0 ratings