Skip to content
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

write bmp3 image, it is empty #1667

Closed
Charltsing opened this issue Jul 4, 2024 · 3 comments
Closed

write bmp3 image, it is empty #1667

Charltsing opened this issue Jul 4, 2024 · 3 comments
Milestone

Comments

@Charltsing
Copy link

Charltsing commented Jul 4, 2024

Magick.NET version

13.9.1

Environment (Operating system, version and so on)

Windows10, net framework 4.7.2

Description

2091-1.zip

MagickImage imageM = new ();
byte[] raw = File.ReadAllBytes("2091-1.bmp");
imageM.Read(raw);
imageM.Write("D:\1.bmp");

1.bmp is empty!

then set HasAlpha = false

MagickImage imageM = new ();
byte[] raw = File.ReadAllBytes(imgfullname);
imageM.Read(raw);
imageM.HasAlpha = false;
imageM.Write("D:\2.bmp");

2.bmp is fine

@dlemstra
Copy link
Owner

dlemstra commented Jul 6, 2024

Thanks for providing me with sample code and an image I can use to reproduce this. But it looks like this issue has already been fixed in ImageMagick because I can no longer reproduce this with my local development build.

@Charltsing
Copy link
Author

i try 13.7.0~13.8.0 , all work fine

This problem has appeared since version 13.9.0

@dlemstra
Copy link
Owner

dlemstra commented Jul 6, 2024

My local development version uses a newer version of ImageMagick than that was used in the latest release. This will be fixed in the next release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants