ionic-team / ionic-team/ionic-cli

Ionic Resources splash too large.

未關閉
#2,780 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
2k
分支
682
PR 合併指標
30 天內沒有已合併 PR

描述

When generating a splash with `ionic cordova resources -s` I get the following error:

```
✔ Filtering out image resources that do not need regeneration - done!
✖ Uploading source images to prepare for transformations - failed!
HTTP Error 400: POST https://res.ionic.io/api/v1/upload
{"Error":"image too large: 27528755","Width":0,"Height":0,"Type":"","Vector":false}
```

Changing the resolution any smaller results in an error that it is too small for the devices.

Ionic Info:
```
cli packages: (/Users/redacted/Desktop/Barjs/node_modules)

@ionic/cli-utils : 1.12.0
ionic (Ionic CLI) : 3.12.0

global packages:

cordova (Cordova CLI) : 7.0.1

local packages:

@ionic/app-scripts : 1.2.5
Cordova Platforms : ios 4.4.0
Ionic Framework : ionic-angular 2.3.0

System:

ios-deploy : 1.9.0
ios-sim : 5.0.6
Node : v6.9.2
npm : 3.10.9
OS : macOS Sierra
Xcode : Xcode 9.0 Build version 9A235

Misc:

backend : legacy
```

貢獻指南

開啟貢獻指南

研究方向

從 `ionic cordova resources -s` 命令開始,追蹤來源圖像上傳至 `https://res.ionic.io/api/v1/upload` 的流程。使用符合裝置解析度要求的圖像重現 HTTP 400;當有效的啟動畫面圖像不再僅因上傳 payload 過大而失敗時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
typescript
領域
cli
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
需要釐清
新手友好度
25/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。