-
-
Notifications
You must be signed in to change notification settings - Fork 500
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImageGlass doesn't open an incorrect bmp file that any other image software opens #708
Comments
Wow! Thank you for the sample file! Embarrassingly, the image opens fine in the thumbbar! The library we use to load images may be picky about what it determines to be "incorrect" images. In this case, the library is actually complaining that "the image length and filesize do not match". That would be consistent with your statement that the bmp is "12 pixels wider than it should be". Since the image can be viewed in the thumbbar, we presumably have a workaround we can use. Also, we seem to have done something so the "real" error has been lost. |
Similar issue as #386. In that case, ImageMagick / Magick.NET was tweaked to allow filesize discrepancy of 4 pixels. We need to ask if we can force an image load and ignore errors, or consider using GDI+ as a workaround in these cases. |
@fire-eggs per #811 when I try this, I get length and filesize do not match (filename) @ error/bmp.c/ReadBMPImage/846; this is using 7.20.0.1 of the library. Maybe a bug needs to be filed at https://github.com/dlemstra/Magick.NET ? |
Yes we should |
Fixed this error in the latest build of IG Moon https://imageglass.org/moon |
System information:
To Reproduce
Steps to reproduce the behavior:
Actual behavior:
The attached file
Fractal_200224145800.zip
is open correctly by any other program that I have tried: Mspaint, Gimp, the Windows file explorer as thumbnail, Firefox, MPC-HC (a videoplayer), etc, except ImageGlass.
Expected behavior:
The bmp file should open with ImageGlass despite the error.
Screenshots:
Additional context:
The bmp file included in the attached zip file has been generated by a small fractal program called Fractal2 https://github.com/Kosalos/Fractal2New (This program is a port from another program of the same author for MacOS. It is compiled using VS2019).
Fractal2 saves the images in bmp format, but there is a bug somewhere and the generated bmp file is 12 pixels wider than it should and this mistake appears as a thin black band on the right side of the image.
The text was updated successfully, but these errors were encountered: