We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using library to reduce incoming images size. Converting incoming GIFs to WebP removes animation.
Used code:
public async Task<MemoryStream> ConvertStreamAsync(Stream input, CancellationToken cancellationToken) { Log.Debug("Converting image stream"); using var imagesProcessor = new ImageJob(); var output = new MemoryStream(); await imagesProcessor .Decode(input, false) .EncodeToStream(output, false, new WebPLosslessEncoder()) .Finish() .WithCancellationToken(cancellationToken) .InProcessAsync(); output.Position = 0; Log.Debug("Done converting image stream"); return output; }
input stream can contain JPEG, PNG, WebP and GIF
input
The text was updated successfully, but these errors were encountered:
It also increased in size
Sorry, something went wrong.
I'm not sure we support animated WebP at this time, but I will see what I can do.
No branches or pull requests
Using library to reduce incoming images size. Converting incoming GIFs to WebP removes animation.
Used code:
input
stream can contain JPEG, PNG, WebP and GIFThe text was updated successfully, but these errors were encountered: