Skip to content

Commit af4b56f

Browse files
authored
Update convert-webp-to-png-radwordsprocessing.md
1 parent 8154119 commit af4b56f

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

knowledge-base/convert-webp-to-png-radwordsprocessing.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: Converting WEBP Images to PNG in HTML Documents using Telerik WordsProcessing
3-
description: Learn how to handle converting .webp format images in DOCX files using Telerik WordsProcessing when importing HTML content.
2+
title: Handle WEBP Images in Word Documents using Telerik WordsProcessing
3+
description: Learn how to handle WEBP Images in Word documents when using Telerik WordsProcessing, by converting them to PNG.
44
type: how-to
5-
page_title: Converting WEBP Images to PNG in HTML Documents using Telerik WordsProcessing
6-
meta_title: Converting WEBP Images to PNG in HTML Documents using Telerik WordsProcessing
5+
page_title: Handle WEBP Images in Word Documents using Telerik WordsProcessing
6+
meta_title: Handle WEBP Images in Word Documents using Telerik WordsProcessing
77
slug: convert-webp-to-png-radwordsprocessing
8-
tags: words,processing, telerik,document, image, webp, html,import, docx,export
8+
tags: words, processing, telerik, document, image, webp, html, import, docx, export, png, convert
99
res_type: kb
1010
ticketid: 1695863
1111
---
@@ -17,19 +17,19 @@ ticketid: 1695863
1717

1818
## Description
1919

20-
The current implementation of Telerik Document Processing libraries is not intended to process `.webp` format images when importing HTML content and exporting the output using [RadWordsProcessing]({%slug radwordsprocessing-overview%}). This article shows how to convert `.webp` images to the [supported formats]({%slug radwordsprocessing-model-imageinline%}) like PNG in Telerik WordsProcessing.
20+
The current implementation of the [RadWordsProcessing]({%slug radwordsprocessing-overview%}) library cannot handle `WEBP` images when exporting Word documents. This article shows how to convert `WEBP` images to any of the already [supported formats]({%slug radwordsprocessing-model-imageinline%}) (like PNG), so they can be exported successfully.
2121

2222
## Solution
2323

24-
To handle `.webp` images, convert them to a supported format like `.png`. Follow the steps below:
24+
This solution uses an HTML document as an example. To handle its `WEBP` images by converting them to a supported format like `PNG`, follow the steps below:
2525

2626
1. Install the `SixLabors.ImageSharp` NuGet package for image conversion.
2727

2828
2. Import the HTML content using [HtmlFormatProvider]({%slug radwordsprocessing-formats-and-conversion-html-htmlformatprovider%}).
2929

30-
3. Iterate through the images in the document and convert `.webp` images to `.png` format.
30+
3. Iterate through the images in the document and convert the `WEBP` images to `PNG`.
3131

32-
4. Replace the `.webp` image sources with the converted `.png` sources.
32+
4. Replace the `WEBP` image sources with the converted `PNG` sources.
3333

3434
5. Export the document to [DOCX]({%slug radwordsprocessing-formats-and-conversion-docx-docxformatprovider%}).
3535

0 commit comments

Comments
 (0)