Open flanger001 opened 8 years ago
I'm getting the same result, I only figured out the error after inserting console.log()
statements in the cli source.
In my case the images are png's with transparent backgrounds.
I removed the transparency and now it seems to work
To start: apologies if I am posting this in the wrong place; I'm not sure where else this would go.
I am developing an Ionic app and wanted to use
ionic resources
to generate the icons. When I would run the command, I would see nothing but "uploading icon.png" and "uploading splash.png", then the script would terminate and nothing would change. I did some digging (and a lot ofconsole.log
-ing and traced where the failure was occurring toloadSourceImages()
inlib/resources.js
.I added some logging code to the reject function:
And got this (apologies in advance, it is the entire httpResponse):
Before the logging, I would just get nothing.
Even with all of that information, I am not sure what to make of it. My file is a perfectly valid 1024x1024 24-bit png image without transparency, and other images of different sizes didn't give me any better results. The promise code is clearly doing what it is supposed to, and yet I still cannot seem to figure out what to do to upload my image.
Again, apologies if I posted this in the wrong place but this seemed like where I thought it should go. Am I doing something wrong, or is there actually an issue here?