Serve a webpage with images from a folder.
Project description
Image Tiles
A Moonshine Labs tool
Overview
A simple but flexible tool to view a folder full of images on your web browser. Features:
- Run one command and serve a folder of images in any format PIL supports.
- Easily view images on another computer, such as when working via SSH or remotely.
- Support for AWS (and eventually GCS/Azure) buckets.
- Normalization and rendering options for a variety of multispectral images, especially satellites.
- Support for multichannel TIFF, JP2, and other less common file formats.
Installation
# Install default installation
$ pip install image_tiles
# Install with S3 support
$ pip install image_tiles[aws]
Usage
$ image_tiles ./path_to_folder
Serving a folder of JPEGs (images from instagram.com/dustinlefevre)
Serving a folder of multispectral TIFFs:
Rendering options
rgb
: Standard RGB image rendering (default).bgr
: BGR image rendering.bw
: Grayscale image rendering from the first 3 channels.sentinel
: Render using channels[1:4] for sentinel satellite data.
Normalization options
standard
: If the image is a standard 1/3 channel image, leave it alone. Otherwise applyscaling
(default)scaling
: Scale to 0-255, clipping negative numbers and scaling positive numbers.sigmoid
: Sigmoid normalization, as described in xarray true colorsentinel
: Sentinel-2 specific normalization, as described at the Sentinel 2 user guide
Current Limitations
- Only a subset of useful normalization and rendering options supported. Help contribute!
- Eventually we'd like to more easily support user code and functions.
- Must restart the server to change some options.
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
image_tiles-0.1.2.tar.gz
(2.2 MB
view details)
Built Distribution
File details
Details for the file image_tiles-0.1.2.tar.gz
.
File metadata
- Download URL: image_tiles-0.1.2.tar.gz
- Upload date:
- Size: 2.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6edf949ecaf6b9bab20e8e8e47feabffd64560558b9d950e528ad8f7c18a0dc7 |
|
MD5 | 6e73bfbb921a0ce2dac78267943d8b24 |
|
BLAKE2b-256 | d7f7d2eceee90e239f558ca6c6c31c4e7ba7e8032bcdee327f09ec47dad4e504 |
File details
Details for the file image_tiles-0.1.2-py3-none-any.whl
.
File metadata
- Download URL: image_tiles-0.1.2-py3-none-any.whl
- Upload date:
- Size: 18.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e08819d8b45a54b7fed64d4bfa171f7638738a60b7b1e0d13a05752f95cf798 |
|
MD5 | 2916b536883c3ff708e2809b18f75d01 |
|
BLAKE2b-256 | d916f90032beb1e4ad3be5b7937943470a222202beb45de17396d208aa2762f4 |