Image sharing web app.
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.
 
 
 
 
 
ge 71e1d87d32 feat: Improve and make scripts POSIX compliant 2 months ago
Dockerfile feat: Reduce image size from ~930M to ~85M 8 months ago
LICENSE feat: Update LICENSE 11 months ago
README.md update README 2 months ago
Upload to imgs feat: Improve and make scripts POSIX compliant 2 months ago
favicon.ico feat: Add favicon 11 months ago
imgs feat: Improve and make scripts POSIX compliant 2 months ago
imgs.ini feat: Update imgs.ini 11 months ago
imgs.py fix: Fixed WSGI app startup 11 months ago
index.tpl fix: Update link 2 months ago
requirements.txt build(deps): Bump bottle from 0.12.19 to 0.12.20 6 months ago
style.css feat: Add dark theme via prefers-color-scheme 2 months ago

README.md

imgs

imgs is a minimalictic image sharing web app written with Bottle framework.

No database. No image compression. No time limits. No additional dependencies.

Features:

  • Upload images via Drag&Drop
  • Easy copy share link
  • MIME type detecting

See deployment options in Bottle documentation: https://bottlepy.org/docs/dev/deployment.html

Run imgs in Docker

Clone repository and edit imgs.ini.

Build Docker image:

docker build --tag imgs .

Run container from image. Replace /path/to/your/uploads/dir with path to directory where you want to store images:

docker run -d \
    --name imgs \
    --publish 127.0.0.1:5000:5000 \
    --volume /path/to/your/uploads/dir:/opt/imgs/uploads \
    imgs

imgs will launched on 127.0.0.1:5000. Set up reverse proxy server. I recommed to use basic authentication to prevent abuses. Nginx virtual host example:

server {
    listen 80;
    server_name yourdomain.tld;
    root /path/to/imgs/root;

    location / {
        auth_basic "Authentication required";
        auth_basic_user_file /path/to/.htpasswd;
        proxy_pass http://127.0.0.1:5000;
    }

    location ~* ^/favicon.ico$ {
        try_files $uri $uri/ =404;
    }

    location ~* \..* {
        auth_basic off;
        proxy_pass http://127.0.0.1:5000;
    }
}

Additional

imgs client with CLI

imgs has a simple CLI tool based on curl. Copy imgs script to your PATH.

sudo cp imgs /usr/bin/imgs

Nautilus integration

Push files to your imgs instance via GNOME Files (former name: Nautilus). Depends on: curl, libnotify (notify-send utility).

Just place Upload to imgs script into ~/.local/share/nautilus/scripts/ directory.

DIR=~/.local/share/nautilus/scripts/; mkdir -p $DIR && cp Upload\ to\ imgs $DIR