2sxc uses the Imazen ImageResizer for dynamic images.
To also support WebP (new in 2sxc 11) we need to include the ImazenWebP extension AND a special DLL. Here's what needs to be done to get the latest DLL:
- You need Visual Studio 2019 and you need to install the C Build Tools as well.
- To verify it works, open a special Developer Command Prompt (look for that in Windows) and then type
nmake
- just to see if it finds the command. If it doesn't you don't have all the prerequisites yet.
- Then you should download the latest libwebp from github [TODO]
- and unpack it
- To compile it
- Open a Developer Command Prompt VS 2019 (or later) and change to the main directory of the downloaded package.
- Now run this
nmake /f Makefile.vc CFG=release-dynamic RTLIBCFG=dynamic OBJDIR=output
Note that in the main readme a different command is listed, but that doesn't create a DLL
- Now copy that generated DLL to wherever you need it
PS: Most of this data was collected from sources like