dlemstra / Magick.NET

The .NET library for ImageMagick
Apache License 2.0
3.46k stars 416 forks source link

Cannot open .webp images #1505

Closed xiaweichuliang closed 8 months ago

xiaweichuliang commented 10 months ago

Magick.NET version

Q16-HDRI-OpenMP x64 netstandard21 13.5.0

Environment (Operating system, version and so on)

win11

Description

opening .webp files and shows that "Magick.NET-Q16-HDRI-OpenMP-x64: insufficient image data in file xxx" but it can be normally opened in Honeyview image

Steps to Reproduce

opening .webp files and shows that "Magick.NET-Q16-HDRI-OpenMP-x64: insufficient image data in file xxx" but it can be normally opened in Honeyview. here are the example files below.

dlemstra commented 10 months ago

Those webp files are invalid and that is why ImageMagick refuses to read them. But that mistake that the application that created those file made is a simple mistake so I added a patch to ImageMagick to work around this mistake. In the next release of ImageMagick and Magick.NET you will be able to read those files.

p.s. Next time it would be nice to include a heads up about the kind of images that you are sharing...

xiaweichuliang commented 10 months ago

oh, I'm sorry for not tagging this...