-
Notifications
You must be signed in to change notification settings - Fork 639
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
Build breaks using webp splash images instead of PNG #257
Comments
Traditionally we only supported PNG files because webp support in android is only available as of API 17. But since I'll add the enhancement flag to this. Edit: Also adding the android flag... as I don't think this is applicable to iOS at all, because of their storyboard system. But I don't think this is a big concern as android assets and ios assets always had to be handled independently anyway for splashscreens. |
- platform independent paths in testing - addes some unittest - remove duplication + add comments - delete webp's if png's added, delete png's if webp' added. - Update bin/templates/cordova/lib/prepare.js Co-authored-by: エリス <[email protected]> - fix apache/cordova-plugin-splashscreen#257 webp support for android
* - linting - platform independent paths in testing - addes some unittest - remove duplication + add comments - delete webp's if png's added, delete png's if webp' added. - Update bin/templates/cordova/lib/prepare.js Co-authored-by: エリス <[email protected]> - fix apache/cordova-plugin-splashscreen#257 webp support for android * revert changes * refactor: use source extension for target in getImageResourcePath * fix(prepare): include more extensions in initial splash-screen resource map * tests(prepare): quick-fix for tests * backward slashes must be changed to forward slashes for fast-glob package. Co-authored-by: Raphael von der Grün <[email protected]>
Bug Report
Problem
I have changed my config.xml to use reduced images. I have used the *.webp format having a config.xml similar to this
What is expected to happen?
I would expect the plugin to accept the format of the image specified in the src attribute
What does actually happen?
I guess the only format accepted is PNG and the error produced is:
Information
I attach the *.webp format of the cordova logo image.
sample-files.zip
Command or Code
using the build command:
Version information
Checklist
The text was updated successfully, but these errors were encountered: