diff --git a/backend/app/utils/images.py b/backend/app/utils/images.py index c3b202205..c9770b584 100644 --- a/backend/app/utils/images.py +++ b/backend/app/utils/images.py @@ -310,10 +310,11 @@ def image_util_find_folder_id_for_image( def image_util_is_valid_image(file_path: str) -> bool: """Check if the file is a valid image with allowed extensions.""" # Check file extension first - allowed_extensions = {".jpg", ".jpeg", ".png"} + allowed_extensions = {".jpg", ".jpeg", ".png",".webp"} file_extension = Path(file_path).suffix.lower() if file_extension not in allowed_extensions: + # Unsupported image format return False # Then verify it's a valid image diff --git a/frontend/src/components/EmptyStates/EmptyAITaggingState.tsx b/frontend/src/components/EmptyStates/EmptyAITaggingState.tsx index f89349524..8eccc224d 100644 --- a/frontend/src/components/EmptyStates/EmptyAITaggingState.tsx +++ b/frontend/src/components/EmptyStates/EmptyAITaggingState.tsx @@ -20,7 +20,7 @@ export const EmptyAITaggingState = () => {