Skip to content
Discussion options

You must be logged in to vote

processImageSettings.TrySetEncoderFormat(ImageMimeTypes.Webp);

This is the right way to set WebP output, but it's a 'Try' method. You need to check the result to see if it succeeded, in which case you should find that it didn't.

For that method to succeed, you must have a WebP encoder available. On Windows client operating systems, you could install it from Windows Store. On server OS or Linux or for applications running in IIS, you will need a separate codec package. Usage instructions are on the readme tab.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by shravan2x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #191 on August 29, 2025 00:13.