Skip to content
New issue

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

Difficult to get WebP to run: 1st because of C Distributables #257

Closed
iJungleboy opened this issue Jun 11, 2020 · 1 comment
Closed

Difficult to get WebP to run: 1st because of C Distributables #257

iJungleboy opened this issue Jun 11, 2020 · 1 comment

Comments

@iJungleboy
Copy link

iJungleboy commented Jun 11, 2020

I wanted to share this for others having this problem, or for @lilith who may find another better way to solve this, also in light of the much anticipated ImageFlow.

We make a Plugin for DNN called 2sxc. It is actually a bundle of plugins, one of which is a DNN wrapper containing the resizer. The latest version of the wrapper now automatically enables WebP support.

When we got done developing it, we deployed it on various servers - some of which worked, and others simply failed. After many hours of research we found 2 issues - here's #1 (see 2nd here):

WebP Requires the Web Server to have C Redistributables installed

You can get them here but this was very difficult for us to figure out (no useful errors) and on some of our "cleaner" servers this was missing.

It also feels like "nasty overhead" just to get another image format to work.

How to resolve: not really sure, but it would surely help if the libwebp.dll either contained all it's dependencies, or was a .net library. The .net library would also be better because of the second issue I'll describe next.

@lilith
Copy link
Member

lilith commented Jul 30, 2020

Unfortunately, it's not likely there will ever be a native C# library for decoding and encoding WebP.

The C Runtime is also not (for security reasons) something we'd want to embed in the .dll. It should be delivered over Windows Update.

The Universal CRT should be supported in newer builds of webp. This should automatically be present on windows machines that have been updated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants