Fork of elimage with specific modifications for my instance. https://i.catgirlsin.space
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
884 B

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
6 years ago
10 years ago
10 years ago
  1. An image paste service in favor of command line usage.
  2. Usage
  3. =====
  4. Run it
  5. ------
  6. Before you run it, you should configure the logging database. Rename
  7. `elimage.db.sample` to match the one in `config.py`.
  8. Run `./main.py` to start the server.
  9. By default it runs at port `8888`, with `/tmp` as data directory to store image
  10. files. Try option `--help` to know how to change them.
  11. You can change some options in file `config.py`.
  12. Upload images
  13. -------------
  14. Use the command line to upload image files and you'll get result URL printed.
  15. You can specify multiple `-F` parameters for multiple image files. The name of
  16. the form field doesn't matter.
  17. ```sh
  18. curl -F 'name=@path/to/image' http://<your_host>/
  19. ```
  20. Requirement
  21. ===========
  22. * Python 3.5+
  23. * The `file` command
  24. * [tornado](https://github.com/facebook/tornado) 3.2+
  25. * The `qrencode` command if you want support for QR-code output