Skip to content

Commit e372447

Browse files
github-actions[bot]KB Bot
and
KB Bot
authored
Added new kb article imagegallery-display-webp-images (#645)
Co-authored-by: KB Bot <[email protected]>
1 parent 713a6ab commit e372447

File tree

1 file changed

+55
-0
lines changed

1 file changed

+55
-0
lines changed
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
---
2+
title: Display WEBP Images
3+
description: Learn how to configure RadImageGallery to display WEBP images by setting up the correct MIME type on your server.
4+
type: how-to
5+
page_title: Display WEBP Images
6+
slug: imagegallery-display-webp-images
7+
tags: radimagegallery, aspnet-ajax, webp, mime-type, staticcontent
8+
res_type: kb
9+
ticketid: 1676084
10+
---
11+
12+
## Environment
13+
14+
<table>
15+
<tbody>
16+
<tr>
17+
<td>Product</td>
18+
<td>RadImageGallery for ASP.NET AJAX</td>
19+
</tr>
20+
<tr>
21+
<td>Version</td>
22+
<td>All</td>
23+
</tr>
24+
</tbody>
25+
</table>
26+
27+
## Description
28+
29+
I have RadImageGallery deployed on several pages of my site. It displays jpg files just fine, but it does not show webp files. Is there a way to set accepted file types for RadImageGallery to include WEBP images?
30+
31+
This knowledge base article also answers the following questions:
32+
33+
- How do I enable WEBP image support in RadImageGallery?
34+
- What server configuration is required to display WEBP images in RadImageGallery?
35+
- Can RadImageGallery display WEBP image format?
36+
37+
## Solution
38+
39+
To display WEBP images in RadImageGallery, ensure your server is configured to serve WEBP files with the correct MIME type. You will need to update your server's configuration file to include the correct MIME type for WEBP files. Add the following configuration in your `web.config` file:
40+
41+
````xml
42+
<system.webServer>
43+
<staticContent>
44+
<mimeMap fileExtension=".webp" mimeType="image/webp" />
45+
</staticContent>
46+
</system.webServer>
47+
````
48+
49+
By following these steps, WEBP images should now display correctly in the RadImageGallery control on your ASP.NET AJAX application pages.
50+
51+
## See Also
52+
53+
- [RadImageGallery Overview](https://docs.telerik.com/devtools/aspnet-ajax/controls/imagegallery/overview)
54+
- [Configuring MIME Types in IIS](https://docs.microsoft.com/en-us/iis/configuration/system.webServer/staticContent/mimeMap)
55+
- [Static Content Feature in IIS](https://docs.microsoft.com/en-us/iis/configuration/system.webServer/staticContent/)

0 commit comments

Comments
 (0)