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

Abierto
#88 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
3/5
Tiempo estimado
1-2 días
Aptitud para principiantes
67/100
Tipo de issue
Error
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
android, typescript
Área
mobile-dev

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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

Lenguaje dominante
TypeScript
Estrellas
6
Forks
3
Merge medio
2 d 21 h
PR fusionados (30 d)
4

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de ionic-team/capacitor-camera

Todos los issues de ionic-team/capacitor-camera

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.