You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to update from V4 to V5 and I'm having issues with the WebP decoder.
I followed the migration guide and removed all references to V4 before installing V5.
Now, if I request /image.jpg?width=500&format=webp I have a resized WebP image, fine.
But if I request /image.webp?width=500 or /image.webp?format=jpeg the original image is served.
Similar issue using the programmatic API, if I call ImageResizer.ImageBuilder.Current.Build with a WebP source image I get the following exception:
ImageResizer.ImageCorruptedException (0x80004005): File may be corrupted, empty, or may contain a PNG image with a single dimension greater than 65,535 pixels. ---> System.ArgumentException: Le paramètre n'est pas valide.
à System.Drawing.Bitmap..ctor(Stream stream, Boolean useIcm)
à ImageResizer.ImageBuilder.DecodeStream(Stream s, ResizeSettings settings, String optionalPath)
à ImageResizer.ImageBuilder.LoadImage(Object source, ResizeSettings settings, Boolean restoreStreamPos)
à ImageResizer.ImageBuilder.LoadImage(Object source, ResizeSettings settings, Boolean restoreStreamPos)
à ImageResizer.ImageBuilder.BuildJob(ImageJob job)
à ImageResizer.ImageBuilder.BuildInternal(ImageJob job)
à ImageResizer.ImageBuilder.BuildInQueue(ImageJob job, Boolean useSemaphore, Int32 maxQueuingMilliseconds, CancellationToken cancel)
à ImageResizer.ImageBuilder.Build(ImageJob job)
Works fine with JPEG.
The text was updated successfully, but these errors were encountered:
I'm trying to update from V4 to V5 and I'm having issues with the WebP decoder.
I followed the migration guide and removed all references to V4 before installing V5.
Now, if I request
/image.jpg?width=500&format=webp
I have a resized WebP image, fine.But if I request
/image.webp?width=500
or/image.webp?format=jpeg
the original image is served.Similar issue using the programmatic API, if I call
ImageResizer.ImageBuilder.Current.Build
with a WebP source image I get the following exception:Works fine with JPEG.
The text was updated successfully, but these errors were encountered: