Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion backend/app/utils/images.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const EmptyAITaggingState = () => {
</div>
<div className="flex items-center gap-2">
<ImageIcon className="h-4 w-4" />
<span>Supports PNG, JPG, JPEG image formats.</span>
<span>Supports PNG, JPG, JPEG, WebP image formats.</span>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/EmptyStates/EmptyGalleryState.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const EmptyGalleryState = () => {
</div>
<div className="flex items-center gap-2">
<ImageIcon className="h-4 w-4" />
<span>Supports PNG, JPG, JPEG image formats.</span>
<span>Supports PNG, JPG, JPEG, WebP image formats.</span>
</div>
</div>
</div>
Expand Down