ionic-team / ionic-team/ionic-cli

Ionic Resources splash too large.

Open
#2,780 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2k
Forks
682
PR merge metrics
No merged PRs in 30d

Description

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
```

Contributor guide

Open the contributing guide

Research direction

Start at the `ionic cordova resources -s` command and trace the source-image upload to `https://res.ionic.io/api/v1/upload`. Reproduce the HTTP 400 with an image that meets device resolution requirements; done means valid splash images no longer fail solely because the upload payload is too large.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.