Skip to content

Photo by any inspiration.You can generate any photo that satisfies you anywhere.

License

Notifications You must be signed in to change notification settings

weirui88888/anyphoto

Repository files navigation

AnyPhoto

中文文档👉

anyphoto is a drawing tool that allows you to generate beautiful pictures anywhere,based on node-canvas.

Playground

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)

Examples

More cases can be viewed in examples.

demo1 demo2

Install

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

Usage

It is expected to support 4 commands, currently 2 of the core are supported.

Init

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)

Generate

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

Github(planning)

After generating the image, you can execute this command to upload the image to github

Show(planning)

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.

TODO

  • Support more preset templates
  • Supports more "smart" line wrapping of content
  • Support background images
  • Improve documentation

Contact

If you are interested in this project or encounter any problems during use, you can communicate with me through WeChat ID XdzD8b

About

Photo by any inspiration.You can generate any photo that satisfies you anywhere.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published