ImageGlass icon indicating copy to clipboard operation
ImageGlass copied to clipboard

Can't open bmp file created by Ctrl + V

Open YYMMYB opened this issue 7 months ago • 1 comments

System information

  • Windows OS version: Win 11 24H2 26100.4061
  • ImageGlass version: ImageGlass 9.3.1.518
  • ImageGlass release: Classic

To Reproduce

Steps to reproduce the behavior:

  1. Use the screenshot tool built into Windows to take a screenshot. It will automatically put the picture into the clipboard.
  2. Go back to the desktop and press Ctrl + V, which will create a BMP format image file on the desktop.
  3. Open this file by ImageGlass.

Actual behavior

Image

Magick.NET-Q16-HDRI-OpenMP-x64: improper image header 'C:\Users\yym\Desktop\2025517134434.bmp' @ error/bmp.c/ReadBMPlmage/713
at ImageMagick.MagicklmageCollection.NativeMagicklmageCollection.ReadFile(IMagickSettings`1 settings) in /_/src/Magick.NET/Generated/Magick.NET.SourceGenerator/ImageMagick.SourceGenerator.NativelnteropGenerator/MagicklmageCollection.g.cs:line 657
at ImageMagick.MagicklmageCollection.Addlmages(String fileName, IMagickReadSettings`1 readSettings, Boolean ping) in /_/src/Magick.NET/MagicklmageCollction.cs:line 1827

Additional context

The pictures in this compressed package cannot be opened. 2025517134434.zip

YYMMYB avatar May 17 '25 05:05 YYMMYB

It's the BMP file has "improper image header". You can report this issue with the sample file to https://github.com/dlemstra/Magick.NET/issues

d2phap avatar May 17 '25 06:05 d2phap