Bug: Not all image URLs are supported

Open
#253 3 comments 0 reactions 0 assignees View on GitHub

@kartik-gupta-ij is already working on this.

Since Nov 1, 2024.

  • #255 by @kartik-gupta-ij — open
  • #381 by @srimon12 — open

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start with src/components/Points/PointImage.jsx, especially lines 10-21, and trace how the web UI decides whether a value is an image URL. Verify the behavior with an image URL that has query parameters, such as the Discord CDN example; done means the dashboard displays it when its HEAD response reports an image content type while existing supported extensions continue to work.

Written by the indexing model from the issue text.

Description

bug

The web UI looks for image URLs ending with jpg|jpeg|png|webp|gif|svg before displaying them on the dashboard.

So it won't work for ones like
https://cdn.discordapp.com/attachments/927784326899331092/1301524272585379932/og.png?ex=6724ca6f&is=672378ef&hm=6584c97a3a83eb4e23505bfdb0b88739c36b494deb9501c60ae9d9bcb652601e&

I think we should check if the value is a URL and image content type is returned in its HEAD response.

Related file:
https://github.com/qdrant/qdrant-web-ui/blob/296764642e8ebefcffb8b08d7d69246dafccf9e1/src/components/Points/PointImage.jsx#L10-L21

Dominant language
JavaScript
Stars
441
Forks
153
Avg merge
43m
Merged PRs (30d)
1

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from qdrant/qdrant-web-ui

All issues in qdrant/qdrant-web-ui

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.