Remote SSH Image Gallery Viewer
Project description
PyRemoteView - Remote SSH Image Gallery Viewer
PyRemoteView is a web-based application that allows you to remotely browse and view images stored on another server via SSH, with automatic thumbnail generation and caching for improved performance.
Features
- Browse remote directories and view images via web interface
- Automatic thumbnail generation for faster browsing
- Local caching of images and thumbnails
- Supports common image formats (JPG, PNG, GIF, WebP, BMP)
- Responsive gallery with lightbox view and keyboard navigation
- Debug interface for troubleshooting
- Can be used to browse local files as well
Requirements
- Python 3.6+
- Flask
- Pillow (PIL)
- SSH access to the remote server
Installation
- Clone or download this repository
- Install required packages:
pip install flask pillow
Setting Up Passwordless SSH
For PyRemoteView to work properly, you need to set up passwordless SSH access to the remote server:
-
Generate an SSH key pair (if you don't already have one):
ssh-keygen -t rsa -b 4096 -
Copy your public key to the remote server:
ssh-copy-id username@remote-serverOr manually add the content of
~/.ssh/id_rsa.pubto the remote server's~/.ssh/authorized_keysfile. -
Test your passwordless login:
ssh username@remote-serverYou should be able to log in without entering a password.
Usage
Basic Usage
python remote_gallery.py --remote-host linux02 --remote-path /path/to/images
Command Line Options
--port PORT: Port to run the server on (default: 8080)--host HOST: Host to run the server on (default: 0.0.0.0)--remote-host REMOTE_HOST: Remote host to fetch images from--remote-path REMOTE_PATH: Path on remote host to browse
Serving Local Files
To browse images on your local machine, use localhost as the remote host:
python remote_gallery.py --remote-host localhost --remote-path /path/to/local/images
Web Interface
After starting the server, access the gallery by opening a web browser and navigating to:
http://localhost:8080
Features:
- Click on folders to navigate directories
- Click on images to view them in a lightbox
- Use arrow keys to navigate between images in lightbox view
- Press Escape to exit lightbox view
- Use "Clear Cache" button to refresh thumbnails and image cache
Troubleshooting
Access the debug page for detailed information about the server status, SSH connection, and cache:
http://localhost:8080/debug
Caching
The application caches thumbnails and recently viewed images in:
~/.cache/pyremotegallery/thumbnails~/.cache/pyremotegallery/images
To clear the cache, use the "Clear Cache" button in the web interface or delete these directories.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyremoteview-0.1.0.tar.gz.
File metadata
- Download URL: pyremoteview-0.1.0.tar.gz
- Upload date:
- Size: 6.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f94d7e0582065b26c11815e550c473998f3b833490854784950daeab7cbffec
|
|
| MD5 |
2055108d46bf09dcebeca10e70031277
|
|
| BLAKE2b-256 |
7529606274a08ebe994a817bcbe0959b420cfca67ad8cd60f5beac7d5c195457
|
File details
Details for the file pyremoteview-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pyremoteview-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f184284b1bf65519eb5ef381e8b8d96f9a840549e052a9587380d8366465a8c9
|
|
| MD5 |
9b299c746fe48d3d9bce36d9f08c5459
|
|
| BLAKE2b-256 |
ad7856c6e1355c30d7f28b38ef4123c16f673d104f58c4e7d615f091f327f7e2
|