Skip to content

Generate Default-2436h.png and Default-Landscape-2436h.png images #3319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
imhoffd opened this issue Jun 20, 2018 · 6 comments
Closed

Generate Default-2436h.png and Default-Landscape-2436h.png images #3319

imhoffd opened this issue Jun 20, 2018 · 6 comments

Comments

@imhoffd
Copy link
Contributor

imhoffd commented Jun 20, 2018

ionic cordova resources should generate Default-2436h.png and Default-Landscape-2436h.png for iOS

In general it's best to try to generate all the expected launch images: https://github.com/apache/cordova-ios/blob/master/bin/templates/project/__PROJECT_NAME__/Images.xcassets/LaunchImage.launchimage/Contents.json

Original issues:

@kinggolf
Copy link

I'll post this here but if this is just a support question, then I apologize. In running ionic cordova resources ios I found cases depending on the base splash.png image that the command would not complete and not all images were created properly. Here are the details:

  1. Created a new Ionic V4 project.
  2. Ran ionic cordova resources ios using the default ionic splash.png image - this ran successfully.
  3. Replaced splash.png with a new image, just a solid color background - this ran successfully.
  4. Added text to this splash.png image and reran - this ran successfully.
  5. Added a small image to this same splash image and reran - not all files were created successfully!!
    Here is a screen shot of the splash image with the image added and one of the files that resulted.

splash_images

Not sure what to try next. When this happens the command just sits idling w/out completing and w/out errors message.

ionic cordova resources ios
✔ Collecting resource configuration and source images - done!
✔ Filtering out image resources that do not need regeneration - done!
✔ Uploading source images to prepare for transformations: 2 / 2 complete - done!
⠙ Generating platform resources: 10 / 13 complete 

@imhoffd
Copy link
Contributor Author

imhoffd commented Jun 20, 2018

@kinggolf The resources server is notoriously flakey. I just kicked it. Would you mind trying again? If it's generating the same images, try making a modification to the png and trying again.

@kinggolf
Copy link

@dwieeb Thanks. Just re-running still did work completely. I moved the photo of the muffin down in the overall splash.png image and it worked! I probably should be using LaunchStoryboard anyway. Appreciate the response.

@moldstadt
Copy link

Any update on this issue? Not having the iPhone-X splash screens causes issues with in-app-browser: apache/cordova-plugin-inappbrowser#306

@vespino
Copy link

vespino commented Oct 22, 2018

Would love to see a solution for this issue. I guess this has been around since iPhone X which was released over a year ago.

@imhoffd
Copy link
Contributor Author

imhoffd commented Jul 16, 2019

This was resolved by this PR: ionic-team/capacitor-assets#26

Available in latest cordova-res.

  • Make sure you're on the latest Ionic CLI: npm i -g ionic@latest
  • Update cordova-res: npm i -g cordova-res@latest
  • Run ionic cordova resources

@imhoffd imhoffd closed this as completed Jul 16, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants