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

Đang mở
#88 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
67/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
android, typescript
Lĩnh vực
mobile-dev

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
TypeScript
Star
6
Fork
3
Merge trung bình
2 ngày 18 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ionic-team/capacitor-camera

Tất cả issue của ionic-team/capacitor-camera

Issue tương tự

Thêm issue về TypeScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.