Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Frame image size issue

Aperta
#1,988 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
android, kotlin

Direzione di ricerca

Start from the camera2 source setup in the CameraFragment example, where the image listener, width, height and rotation are configured, and check how rotation 90 changes the reported output size. Reproduce with width 1920, height 1080, rotation 90 and confirm the image comes back 1080x1080. Done means the output keeps the rotated dimensions (1080x1920) without changing the landscape behaviour at rotation 0.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug
When I set the rotation to 90, the width and height of the image obtained from the camera2 source are the same.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'CameraFragment' and add imageListener
  2. Set: width = 1920, height = 1080, rotation = 90
  3. The resulting image has a width and height of 1080

Smartphone (please complete the following information):

  • Library version [e.g. 2.6.6]
  • Device: [Honor X50, vivo Y36c]
  • OS: [Android13/14]

Additional context

  1. I changed the rotation to 90 because I wanted to get a vertical recorded video, and I accidentally discovered this problem.
  2. If I don't change it, for example, if the preview resolution is 1920x1080 and rotation=0, the recorded video resolution is 1920x1080, but I want the video to be 1080x1920, is there any other way to achieve this?
  3. If I don't directly modify the code, but instead manipulate Orientation through the UI, the above problem won't occur, and the image size will be 1920x1080.
Lingua principale
Kotlin
Stelle
3k
Fork
946
Merge medio
3g 17h
PR unite (30g)
9

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pedroSG94/RootEncoder

Tutte le issue di pedroSG94/RootEncoder

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.