anyphoto is a drawing tool that allows you to generate beautiful pictures anywhere,based on node-canvas.
You can quickly experience it in playground. (This visual playground is constantly being improved, and it is more recommended to install it locally to experience it)
More cases can be viewed in examples.
By default, binaries for macOS, Linux and Windows will be downloaded.Caused by core package node-canvas
The first installation requires compilation, so it may take a long time. If you encounter problems during the installation process, please check install wiki and find the corresponding solution before installing it.
npm install anyphoto -g
You can also use it by use npx
It is expected to support 4 commands, currently 2 of the core are supported.
Generate a configuration file, and then you can make modifications in the configuration file. This command supports creating configuration files in any directory.
anyphoto init
More configuration items can be viewed at configuration. (due to time and energy issues, the document is being continuously improved)
After executing this command, a picture will be generated based on the configuration file generated and modified in the previous step.
anyphoto generate
This command supports passing parameters and several core options. You can pass them in when executing this command. The parameters and options passed in the command line will overwrite the corresponding configuration items in the configuration file.
You can execute anyphoto generate --help
to view them
After generating the image, you can execute this command to upload the image to github
Preset templates will be supported in the future. After executing this command, you can check which templates are currently available, and you can also view sample images of the specified template.
- Support more preset templates
- Supports more "smart" line wrapping of content
- Support background images
- Improve documentation
If you are interested in this project or encounter any problems during use, you can communicate with me through WeChat ID XdzD8b