Ionic-cli: Getting Invalid upload: unable to read uploaded image

Created on 17 Jun 2015  Â·  4Comments  Â·  Source: ionic-team/ionic-cli

Hello, i am getting following error when i am trying to generate resources:

ionic resources
Ionic icon and splash screen resources generator 
 uploading icon.png...
 uploading splash.png...
 ✗ Invalid upload: unable to read uploaded image
 ✓ splash.png (2208x2208) upload complete

here are my two files in /resources directory:
icon

splash

Most helpful comment

@jbavari @softBarbarian Recreation didn't worked for me, However after exporting the images with interlacing turned off fixed it and Ionic accepted the file.

All 4 comments

here is my info

Cordova CLI: 5.0.0
Gulp version:  CLI version 3.8.8
Gulp local:   Local version 3.8.11
Ionic Version: 1.0.0
Ionic CLI Version: 1.5.4
Ionic App Lib Version: 0.2.1
ios-deploy version: 1.6.2 
ios-sim version: 3.1.1 
OS: Mac OS X Yosemite
Node Version: v0.12.2
Xcode version: Xcode 6.3.2 Build version 6D2105 

Recreated images and everything worked

@jbavari @softBarbarian Recreation didn't worked for me, However after exporting the images with interlacing turned off fixed it and Ionic accepted the file.

change your png to default ionic icon and splash png, if it works, try to change your photo resolution and format exactly as png, not jpeg that saved as png.

Was this page helpful?
0 / 5 - 0 ratings