We are having an issue with webp HTML image references. A traditional image format like png or jpg seems to work properly, but if the reference is for a webp image we experience a long delay processing resulting in a broken image reference in the output. Is there something we need to do in order to render this type properly?
@knowify can you please check that the image is available and accessible from the application.
Additionally, can you please provide a functional example that allow us replicate the problem and provide a more accurate solution.
@knowify Currently Aspose.Words does not support webp images. I have linked your request to the appropriate issue. If you are using .NET Standard or .NET6 version of Aspose.Words you can work the problem around using SkiaSharp. For example see the following code:
Document doc = new Document();
DocumentBuilder builder = new DocumentBuilder(doc);
using (SkiaSharp.SKBitmap bmp = SkiaSharp.SKBitmap.Decode(@"C:\Temp\webp.png"))
builder.InsertImage(bmp);
doc.Save(@"C:\Temp\out.docx");
In case of reading from HTML, you can implement something similar in ResourceLoadingCallback.
Regarding long delay, there was a similar problem, which has been fixed in 22.7 version. Please make sure you are using the latest version of Aspose.Words.
FYI @eduardo.canal
The issues you have found earlier (filed as WORDSNET-23266) have been fixed in this Aspose.Words for .NET 24.4 update also available on NuGet.