is there a command to create a simple PNG/JPG picture file, can be run in terminal/script command on Mac?
For now, I’m going to create a simple one color PNG picture file, with parameter to specify wide and length. if it can put text on it, is much better.
The command-line
convertutility in the ImageMagick suite can easily create an image of specified dimensions:To create an image with text, use additional options:
The ImageMagick site has many more examples of usage.
To get ImageMagick on OSX, you can either use an automated build system such as MacPorts or run a pre-made installer package.