mmacmillan/cordova-imaging ? reverse-engineered prompt

Reverse engineered prompt

Build me a Node.js command line tool for Cordova apps that takes a single app icon, splash screen, and optional preview images, then generates all the different image sizes needed for iOS and Android.

I want it to be configuration driven, so I can use a default setup or drop in a local imaging config file to change source paths, turn platforms on or off, and choose which icons, splash screens, or previews get created. It should read from an assets folder by default, write the generated files into the right Cordova platform folders, and also export preview images into a neat assets previews folder.

Use GraphicsMagick through the gm library for resizing and cropping, and make sure it works from the command line with a simple command from the project root. If there are sensible defaults for common Cordova image sizes, include them. Keep it easy to customize, and make sure the docs explain how to install it, set up the source images, and run it in an existing Cordova app.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab