I am trying to use the ionic resources --splash command, I have a splash.png file saved in my resources folder as well as in the root of my ios and android folders, and it is 2208 x 2208 which is the advised size. But when I run the command I get the following error
"Invalid upload: unable to read uploaded image"
I have added the splash screen preference in my config.xml. Is there more conditions that they didn't specify?
I got the same error when uploading an interlaced .png.
However after re-exporting with interlacing turned off ionic accepted the file fine.
I just realized that the image I had was actually an Adobe Illustrator image. All I had to do was rename the image from .png to .ai and it worked!
For those wondering here is a quick explanation on the difference between the two:
.ai - Adobe Illustrator vector files are scalable both down and up.
.png - pixel files can be scaled down, not up.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With