ImageSharp icon indicating copy to clipboard operation
ImageSharp copied to clipboard

Use gif to converted have animation webp, but this converted webp image can not import What's app software

Open Dylan-Jinx opened this issue 4 months ago • 1 comments

Prerequisites

  • [X] I have written a descriptive issue title
  • [X] I have verified that I am running the latest version of ImageSharp
  • [X] I have verified if the problem exist in both DEBUG and RELEASE mode
  • [X] I have searched open and closed issues to ensure it has not already been reported

ImageSharp version

3.1.5

Other ImageSharp packages and versions

3.1.5

Environment (Operating system, version and so on)

MacOS

.NET Framework version

.NET8

Description

I am using a GIF image to convert it into an animated WebP, but the resulting WebP image cannot be imported into WhatsApp. It seems to be filtered or rejected by WhatsApp. However, when I use the Magick library to perform the same conversion, the WebP file is successfully imported into WhatsApp.

Here is the code I am using to convert the GIF to WebP:

var gifImage = Image.Load(image);
gifImage.SaveAsWebp(Path.Combine(AppContext.BaseDirectory, "testImageSharp.webp"));

I would like to know if there is a specific issue with my code or any known differences between the encoding methods that could be causing this problem.

Steps to Reproduce

var gifImage = Image.Load(image);
gifImage.SaveAsWebp(Path.Combine(AppContext.BaseDirectory, "testImageSharp.webp"));

Images

No response

Dylan-Jinx avatar Oct 18 '24 09:10 Dylan-Jinx