Feature request: Android 9 Patch Support
For some app we need to apply 9 Patch as it's basic form (just 1px of background on the sides of the image) to the Android splashscreens. There are some tools out there that could be cli-chained with cordova-res but it could be awesome to have it as an option (also to automatically rename config.xml references).
Can you elaborate on why it's necessary to create 9-Patch splash screens for these apps?
📝 More investigation is needed, but it looks like this is possible in sharp with composite. An SVG buffer could be created that describes the necessary black lines and then overlaid onto the resultant image to create an additional .9.png file.
Using <preference name="SplashMaintainAspectRatio" value="true" /> and filling only the 1200x1200px "safe area" means no needs of 9Patch versions.
But, and I understand, this is a very specific request, I'm using the same config.xml file over different resources (for different customers) and, some are pretty customized and needed 9Patch to prevent near border content to be extended outside the screen area.
What I requested was if it could be possible to add the same of 9pedit -clear from this tool, adding a 1px transparent border to every image (the full specification of content and stretch areas will be nearly impossible), otherwise I'm keeping chaining it with NPM scripts.
+1 for 9 patch support
Maybe code from my cordova legacy repo would be useful here: https://gist.github.com/piotr-cz/1a3f1360d189231792db21756cb4a72d
Closing for now, not planned unless it comes up from the community again.