I’d placed spash.psd and icon.psd into resources directory, and the dimensions are correct (as specified in http://ionicframework.com/docs/cli/icon-splashscreen.html). The icons created from ionic resources --icon were created absolutely fine.
I finally only got it to work by exporting the psd into a png file.
the PSD was not created by me, but by our creative. It is possible that there is something corrupt in the file that causes the issue, but I was able to load the psd into PS 2014 without any issues. However, I just tried again with the psd, after re-saving it from my Photoshop with the same results.
He’s added 2 layers: grid-lines, then bg, and then logo. Other than that, I cannot see any differences. Should they have been all put on the same layer? Good to know for the future.
Same here. I have a splash.png that is a little larger than the minimum. It gets uploaded and there are no errors or warnings. Everything says it worked, but when it’s finished, there are no files in resources/android/splash or resources/ios/splash. Is there a maximum file size limit? When I tried a file I thought might be too large, it didn’t even try to generate the images. It just exited with no message at all.
I think it might be a physical file size issue. I resized my PNG down to 2208x2208. Then I used an image optimizer to get the file size from 8.7MB to 2.6MB, and reran ionic resources -s. That worked. However, 2208x2208 is too small. There are two ios screens larger than that, and they get skipped.
Hi WalkingRiver, do you still have an issue with the images? I didn’t have an issue with the size of the images, so I’d be surprised if that was the problem (unless something has changed at the back-end). Have you made sure that the image dimensions are correct?
Seems to be a resolution issue, not file size. Any larger than 2208x2208 looks like it works but doesn’t output images. My source file was 40kb and it still failed, but works when I resize it down.
I ran into this issue today as well: Downloaded the 2732x2732 PSD template, added the company logo and saved the file as a PNG. Ran ‘ionic resources -s’ and didn’t get any files or error messages. Resized the file to 2208x2208 per this thread and got the files I needed except for the iPad Pro image.
I think this might be an old thread, but I too suffered from this same situation. In my case the console reported all files being created, but they weren’t in the ‘resources/ios/splash’ folder and a system search didn’t find them anywhere else.
I tried numerous things including resizing them to 2208, running the command with --force… nothing seemed to work.
After spending a few hours, I tried
npm install -g ionic
turned out I had an older version, so it needed the update, and walla, it works again.
Thanks to the ionic team for such a brilliant product!! You guys are tops!