[Bug]: Camera.takePhoto reduces the image size to the screen resolution when using `editable: 'in-app'`

Aperta
#88 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
67/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
android, typescript
Ambito
mobile-dev

Direzione di ricerca

Start by tracing Camera.takePhoto with editable: 'in-app' through the Android implementation; the issue does not name specific files or tests. Check how the editor handles the source image when target dimensions are unset or very large, then reproduce with the supplied call. Done when the saved photo retains its original resolution without configured size constraints.

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

Descrizione

Current Behavior

Taking a photo with the in-app editor resizes the image to the screen resolution.

Happens when targetWidth and targetHeight are not configured and also happens when I set them to a very large value, e. g.: targetWidth: 8000, targetHeight: 8000.

My camera takes photos in 3000x4000 px resolution. Photos taken with editable: 'in-app' result in a size of 974x1298 px which seems to be the scaled down image size that was displayed on my phone screen during the editing process. We have tested this with other phones that result in even smaller sizes (due to smaller screen resolution sizes).

Expected Behavior

It should not resize the image without targetWidth and targetHeight constraints.

Reproduction

Camera.takePhoto({saveToGallery: true, editable: 'in-app', quality: 100})

Screenshots / Media

No response

Environment Details
Latest Dependencies:

  @capacitor/cli: 8.5.3
  @capacitor/core: 8.5.3
  @capacitor/android: 8.5.3
  @capacitor/ios: 8.5.3

Installed Dependencies:

  @capacitor/ios: not installed
  @capacitor/cli: 8.5.3
  @capacitor/core: 8.5.3
  @capacitor/android: 8.5.3

[success] Android looking great! 👌

npm --version
12.2.1

node --version
v26.12.1
Versions Affected

8.2.6

Platforms Affected
  • iOS
  • Android
  • Web
Notes / Comments

No response

Lingua principale
TypeScript
Stelle
6
Fork
3
Merge medio
2g 21h
PR unite (30g)
4

Preparare l'ambiente

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 ionic-team/capacitor-camera

Tutte le issue di ionic-team/capacitor-camera

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.