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.
lilydjwg e20d6f7b6d update README 1 year ago
templates update index.html 1 year ago
.gitignore add index-site.html support and fix index template caching 1 year ago
LICENSE add LICENSE 2 years ago
README.md update README 1 year ago
cloudflare.py remove debugging logging 2 years ago
config.py allow configuring a password for uploading 2 years ago
elimage.db.sample save file size in database too 2 years ago
elimage.sql save file size in database too 2 years ago
main.py add index-site.html support and fix index template caching 1 year ago
models.py save file size in database too 2 years ago

README.md

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.

curl -F 'name=@path/to/image' http://<your_host>/

Requirement

  • Python 3.5+
  • The file command
  • tornado 3.2+