BUG: Semantic search sees portrait phone photos sideways (SigLIP ignores EXIF orientation)
I maintainer di solito rispondono entro 4 giorni
@jayssSmm ci sta già lavorando.
Dal 26/11/2026.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 76/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Ambito
- machine-learning, search
Direzione di ricerca
Inizia da backend/app/utils/SigLIP.py ed esamina siglip_util_preprocess_image(); l’issue indica il percorso di apertura e ridimensionamento delle immagini. Aggiungi un test unitario usando un JPEG con EXIF Orientation=6, come suggerito nell’issue. Il lavoro è completato quando l’output del preprocessing è diritto e il test verifica la gestione dell’orientamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is there an existing issue for this?
- I have searched the existing issues
What happened?
While going through the semantic search code I noticed that siglip_util_preprocess_image() in backend/app/utils/SigLIP.py doesn't handle EXIF orientation.
Phones usually store portrait photos as landscape pixels + an EXIF Orientation tag (like 6 = rotate 90° clockwise). Viewers read that tag and show the photo upright. But here the image is just opened and resized:
img = (
Image.open(img_path)
.convert("RGB")
.resize((resolution, resolution), Image.BICUBIC)
)
so SigLIP ends up getting portrait phone photos turned sideways. That would hurt semantic search and semantic labels for basically any portrait photo taken on a phone.
The face/object side is fine btw, cv2.imread already applies EXIF orientation. So right now the same photo is upright for YOLO/FaceNet but sideways for SigLIP.
How I checked
I ran the actual siglip_util_preprocess_image() on a real phone photo with Orientation = 6 and turned the output tensor back into an image:
| What you see | What SigLIP gets |
|---|---|
| (drag 1_what_you_see.png here) | (drag 2_what_siglip_sees.png here) |
Also tried a small test image saved with Orientation=6 (red left half, blue right half). It displays with red on top, but SigLIP gets red on the left:
Displayed size (w,h): (200, 400)
SigLIP input: red in top half=0.50, red in left half=1.00
Upright photo: red in top half=1.00, red in left half=0.50
Checked on dev at 3c6b10f.
Not a duplicate of
- #1570 / #1596 - same cause, but only fixes thumbnails
- #1727 - only the OpenCV loaders for faces/objects
Neither touches SigLIP.py.
Possible fix
Add ImageOps.exif_transpose() right after Image.open() and a unit test with an Orientation=6 JPEG. It's a small change.
One thing I wasn't sure about: photos that are already embedded will keep the old sideways embeddings. Should they get re-embedded as part of this, or is that better as a separate issue?
I'd like to work on this if that's okay.
Record
- I agree to follow this project's Code of Conduct
- Lingua principale
- Python
- Stelle
- 322
- Fork
- 793
- Merge medio
- 6g 9h
- PR unite (30g)
- 20
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di AOSSIE-Org/PictoPy
-
BUG: Share password loses leading/trailing spaces so the password you set doesn't workForse già presa @swastiksharma45 l’ha presa 2 giorni fa. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
AOSSIE-Org/PictoPy#1779 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
BUG: PROD: Face search shows "No Matches Found" for every empty result, even when AI tagging is offForse già presa @dhruvbit l’ha presa 3 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
AOSSIE-Org/PictoPy#1770 · 3 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
BUG: Add images to album: success message shows requested count, not number actually addedForse già presa @riyanshbhosale l’ha presa 5 giorni fa. Apertabug enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
AOSSIE-Org/PictoPy#1740 · 4 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
BUG: /sync-folder does not validate the supplied folder_idForse di nuovo libera @sathvikn113 l’ha presa 10 giorni fa e non c’è nessuna pull request aperta. Apertabug possible-duplicate
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
AOSSIE-Org/PictoPy#1731 · 5 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
DOC: update deprecated libgl1-mesa-glx package and stale setup.md referencesForse di nuovo libera @avika269 l’ha presa 10 giorni fa e non c’è nessuna pull request aperta. Apertadocumentation
Difficoltà 1/5 1-3 ore Idoneità per principianti 65/100
AOSSIE-Org/PictoPy#1730 · 5 commenti ·
I maintainer di solito rispondono entro 4 giorni
Tutte le issue di AOSSIE-Org/PictoPy
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
bad-antics/lateralus-lang#1140 ·
I maintainer di solito rispondono entro 4 giorni
-
Groq: SQL fallback call sends tools with response_format, so a failed tool loop never recoversApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 3 giorni
-
fixture good first issue help wanted vendor:cisco
Difficoltà 1/5 1-3 ore Idoneità per principianti 85/100