Generate resources

Hi guys,
I need to generate my icons and splascreens automatically. I used the ionic/cordova command but I receive error 400.

ionic cordova resources ios --splash
√ 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}

Have you any advices?

Thanks

This happens when you have a problem with the image, in my case it happened to me when I uploaded a PNG that I exported as compressed in Photoshop, by some reason Ionic Resources API can’t capture the information about the image and then show this error to you. Try with a different image format or a different image just for test.

1 Like