Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
PR Details
Description / Motivation and Context
This pull request adds support for the WebP image format across various parts of the codebase. The changes include updating enums, extending helper methods, and modifying test cases to handle the new format.
Adding WebP support:
webp
to theImageFormat
enum inExtensionRolesHelper.cs
andIFileIndexItem.ts
. [1] [2]ExtensionWebp
for WebP file extensions and added it to theMapFileTypesToExtensionDictionary
. [1] [2]GetImageFormatMetaWebp
method to identify WebP files based on their byte signature.GetImageFormat
to recognize WebP files.Client-side updates:
list-image.tsx
to handle WebP images in theListImage
component.preference-app-settings-desktop.tsx
and related test files to include WebP in the default image formats. [1] [2] [3] [4]Testing:
CreateAnImageWebP
to generate WebP images for testing purposes.ExtensionRolesHelperTest.cs
to include test cases for WebP image format. [1] [2] [3] [4] [5] [6] [7] [8] [9]Related Issue
How Has This Been Tested
Types of changes
Checklist