![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
cordova-media-gen
Advanced tools
CLI Utility that generates Cordova / Phonegap image assets required for app store submission, icons, and splash screens.
It requires your logo to have a solid background colour but does not distort or lose any image content so everything is at the maximum size without loss.
Need imagemagick
On Debian/Ubuntu:
sudo apt-get install imagemagick
on OS X:
brew install imagemagick
$ npm install -g cordova-media-gen
Once installed, cd to the root of your Cordova application and run:
$ cordova-media-gen <logofilename.jpg> <backgroundcolourinhex-egFFF>
$ cordova-media-gen logo.jpg fff
To create the config
$ cordova-media-gen init
If you have created a mediagen-config.json
file (see below), you can just run:
$ cordova-media-gen
This will overwrite all logos and splash screen images in the <projectdir>/platforms
directory with the correct sizes and in the correct location for Cordova (As at 3.5)
The recommended image or logo size is 2000px x 2000px. Its not a problem if the logo isn't square.
It also creates a <projectdir>/Media
directory that has images for the Apple and Android stores such as an app icon.
You can create additional custom images if you need to submit to alternative app stores or have other needs that we haven't thought of yet.
Simply go to your project directory and run
$ cordova-media-gen init
It will create an example file called mediagen-config.json
which you can now edit. Add as many or few files as you need to the array.
Note: The default path for files is the
<projectdir>/platforms
directory, you might need to use../
as in the example below
mediagen-config.json
{
"mediaPath": "media",
"icon": {"filename":"icon.png","background":"fff"},
"splash": {"filename":"splash.png","background":"fff"},
"customImages": [
{"width": 120, "height": 120, "path": "../Media/custom", "filename":"outputFilename.png", "source":{"filename":"image.png","background":"fff"}}
],
"screenshots": [
{"url":"http://www.google.com", "name":"homepage"}
]
}
Screenshots are a new feature that use PhantomJS to quickly generate a number of the screenshot assets you need when submitting to the app store. You need your local development server running when you execute mediagen
so it can access the Cordova versions of the files. Of course this won't be able to access a number of things in lots of apps but hopefully it should get you up on the app store pretty quickly.
This is still pretty experimental, and also please be aware that it may seem to hang for a minute or so before you see the screenshots being generated (it does need to visit the page each time!)
The config variables are below:
FAQs
Generates Cordova Media (Splashscreens, Icons & Screenshots)
The npm package cordova-media-gen receives a total of 3 weekly downloads. As such, cordova-media-gen popularity was classified as not popular.
We found that cordova-media-gen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.