https://github.com/Vim-cn/elimage
An image paste web service. (https://git.io/img)
https://github.com/Vim-cn/elimage
image-hosting pastebin python
Last synced: 10 months ago
JSON representation
An image paste web service. (https://git.io/img)
- Host: GitHub
- URL: https://github.com/Vim-cn/elimage
- Owner: Vim-cn
- License: agpl-3.0
- Created: 2011-09-05T14:54:30.000Z (over 14 years ago)
- Default Branch: master
- Last Pushed: 2021-07-03T10:28:57.000Z (over 4 years ago)
- Last Synced: 2024-08-04T04:08:58.859Z (over 1 year ago)
- Topics: image-hosting, pastebin, python
- Language: Python
- Homepage: https://img.vim-cn.com
- Size: 87.9 KB
- Stars: 203
- Watchers: 7
- Forks: 30
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
An image paste service in favor of command line usage.
Usage
=====
Run it
------
Before you run it, you should configure the logging database. Rename
`elimage.db.sample` to match the one in `config.py`.
Run `./main.py` to start the server.
By default it runs at port `8888`, with `/tmp` as data directory to store image
files. Try option `--help` to know how to change them.
You can change some options in file `config.py`.
Upload images
-------------
Use the command line to upload image files and you'll get result URL printed.
You can specify multiple `-F` parameters for multiple image files. The name of
the form field doesn't matter.
```sh
curl -F 'name=@path/to/image' http:///
```
Requirement
===========
* Python 3.5+
* The `file` command
* [tornado](https://github.com/facebook/tornado) 3.2+
* The `qrencode` command if you want support for QR-code output