Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ionic splash screen (error: unable to read uploaded image)

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?

like image 702
KSumpy Avatar asked Mar 12 '15 15:03

KSumpy


2 Answers

I got the same error when uploading an interlaced .png.

However after re-exporting with interlacing turned off ionic accepted the file fine.

like image 120
Matthew Webb Avatar answered Oct 21 '22 01:10

Matthew Webb


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.

like image 23
KSumpy Avatar answered Oct 21 '22 00:10

KSumpy