Fork of elimage with specific modifications for my instance. https://i.catgirlsin.space
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
noirscape 1b5cfee5df Merge https://github.com/Vim-cn/elimage il y a 2 mois
templates Merge https://github.com/Vim-cn/elimage il y a 8 mois
.gitignore Merge https://github.com/Vim-cn/elimage il y a 2 mois
LICENSE add LICENSE il y a 2 ans
README.md add QR code support il y a 9 mois
cloudflare.py remove debugging logging il y a 2 ans
config.py.example HTTPS option added since reverse proxy can be done over HTTP. il y a 1 an
elimage.db.sample save file size in database too il y a 2 ans
elimage.sql save file size in database too il y a 2 ans
main.py Merge https://github.com/Vim-cn/elimage il y a 2 mois
models.py save file size in database too il y a 2 ans

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+
  • The qrencode command if you want support for QR-code output