Use JPEG to launch images

This is due to Default-Portrait.png for iPad: any way to reduce file size?

Can I specify a more efficient file format (for example, JPEG) for Default-Landscape.png and Default-Portrait.png?

+7
source share
3 answers

Cannot use image other than png.

All startup images must be PNG files and must be at the top level of the application directory. Section: Launching the application (default) Images


Update: JPEG images for work and Apple documentation no longer indicate that images should be PNG files.

+5
source

Yes, it is possible to use jpg files as startup images. Just add the โ€œRun Imageโ€ key with the base file name (for example, LaunchImage.jpg) in Info.plist. Then add files to your project, for example

  • LaunchImage.jpg
  • LaunchImage@2x.jpg
  • LaunchImage-568h@2x.jpg

and Xcode will pick them up.

However, through personal experience, I found that if you support the larger screen of the iPhone 5 , the App Store expects PNG format and uses PNG to detect iPhone 5 and display iPhone 5 size thumbnails in the store. Using JPG images will not show the application as iPhone 5, optimized in the application store (although it will work fine on the device), so itโ€™s best to stick with PNG.

+6
source

If you use xcassets, then with Xcode 6 you can use JPG. However, Xcode will still not allow you to migrate JPG to the LaunchImage folder. But you can do it in Finder. Just drop the PNG into this folder using Finder, and then edit the JSON file, changing all the .png extensions to .jpg.

I have not yet sent the application to the store, but it works at least in the iPhone simulator.

Update: does not work on the device. In any case, I leave this answer in such a way that people know that this technique, at least, has been tested so that the effort does not repeat itself.

+4
source

All Articles