Skip to content

Malformed webp fails to display, displays in browsers and other MS Paint without issue #2419

Description

@jpert

Windows OS version

25H2 26200.9168

ImageGlass version

10.0.11

ImageGlass release

Store

1️⃣ Steps to reproduce

Open the sample .webp image file with ImageGlass 10.0.11 on Windows 11

Edge, Firefox, Microsoft Paint all successfully open this image with displaying any errors.

2️⃣ Actual behavior

ImageGlass instead delivers this error:

<unknown> ImageMagick. MagickCorruptImageErrorException > corrupt image

at ImageMagick. NativeInstance.CheckException(IntPtr, IntPtr) + 0x62

Could not load this image

ImageGlass 10 10.0.4.819-win-x64
Magick.NET Q16-HDRI-OpenMP x64 net8.0 14.16.0
Windows 64-bit 10.0.26200.0, .NET 10.0.11

'' @ error/webp.c/ReadWEBPImage/569

at ImageMagick.MagickImage.NativeMagickImage. ReadStream(IMagickSettings'1, MagickImage.ReadWriteStreamDelegate, MagickImage. SeekStreamDelegate, MagickImage. TellStreamDelegate, Void*) + 0x88
at ImageMagick.MagickImage. Oc_DisplayClass770_0 .< ReadAsync>b_0() + 0x99
at ImageMagick.AsyncStreamWrapper. c_DisplayClass11_0 .< ReadAsync>b_@() + 0x19
at System. Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object) + 0xad
End of stack trace from previous location ---
at System. Threading.ExecutionContext.RunInternal(ExecutionContext, ContextCallback, Object) + 0x10b
at System. Threading. Tasks. Task. ExecuteWithThreadLocal(Task&, Thread) + 0x90
-- End of stack trace from previous location ---
at ImageMagick.AsyncStreamWrapper .< ReadAsync>d_11.MoveNext() + 0x68
- End of stack trace from previous location ---
at ImageMagick.MagickImage .< ReadAsync>d_770.MoveNext() + 0x159
- End of stack trace from previous location ---
at ImageMagick. MagickImage .< ReadAsync>d_534.MoveNext() + 0xf0
- End of stack trace from previous location -
at ImageGlass. Common.Photoing.MagickCodec .< DecodeImageAsync>d_9.MoveNext() + 0xbe
- End of stack trace from previous location ---
at ImageGlass.Common. Photoing.MagickCodecAdapter .< DecodeAsync>d_26.MoveNext() + 0x7a
-- End of stack trace from previous location ---
at ImageGlass. Common.Photoing.Photo .< OnDecodingAsync>d_90.MoveNext() + 0x91
-- End of stack trace from previous location ---
at ImageGlass.Common.Photoing.Photo. c_DisplayClass99_0 .<< LoadAsync>b_0>d.MoveNext() + 0x51

3️⃣ Expected behavior

Image should display without errors

4️⃣ Screenshots / Video / Sample image file

Image

5️⃣ Additional context

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions