30 Nisan 2018 Pazartesi

ionic cordova resources issue

When you come to resource command operation which is help you to provide all versions for android and ios icon and splash images. You may get an exception as following;

ionic cordova resources android --no-timeout
Collecting resource configuration and source images - done!
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":"unable to read uploaded image","Width":0,"Height":0,"Type":"png","Vector":false}

to solve this problem you just need to use following web site and try to compress your images then try it again, its going to work like a charm :)

website:  https://tinypng.com/

Try to use resources command for ios and android as following;

ios resources command :

ionic cordova resources ios --no-timeout

android resources command :

ionic cordova resources android --no-timeout