tns resources generate splashes are the wrong size

Đang mở
#5,358 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
42/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
android, ios, javascript
Lĩnh vực
cli, mobile

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện tns resources generate splashes image.png với các kích thước hình ảnh được báo cáo và kiểm tra các tài nguyên Android xxxhdpi được tạo. Truy vết điểm vào CLI cho việc tạo splash để xác định cách các kích thước đầu ra được tính toán. Hoàn thành khi các hình ảnh splash được tạo có kích thước như mong đợi cho các nền tảng được hỗ trợ.

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

Mô tả

Environment

  Getting NativeScript components versions information...
✔ Component nativescript has 6.8.0 version and is up to date.
✔ Component tns-core-modules has 6.5.15 version and is up to date.
⚠ Update available for component tns-android. Your current version is 6.5.0 and the latest available version is 6.5.3.
⚠ Update available for component tns-ios. Your current version is 6.5.0 and the latest available version is 6.5.2.

Describe the bug

When running tns resources generate splashes image.png the android splash screens are very small.
I tried with different sizes of input image, all corresponding to a scale up of xxxhdpi. Still, very small. Tried with a square image instead of 1920x1080, same result.

To Reproduce

  • Create an image, 1920x1080, or anything bigger/smaller
  • tns resources generate splashes image.png
  • Go to the Android's xxxhdpi resources folder.
  • The image is like 640px

Expected behavior
Images the right size, but I'm really not sure what it's expecting as an input. Bigger files with special names for IOS?
I ended up using http://images.nativescript.rocks/

Ngôn ngữ chính
JavaScript
Star
1.1k
Fork
204
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
8

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

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 NativeScript/nativescript-cli

Tất cả issue của NativeScript/nativescript-cli

Issue tương tự

Thêm issue về JavaScript

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.