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
$ pip install image_tiles
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.0.tar.gz
(15.5 MB
view hashes)
Built Distribution
Close
Hashes for image_tiles-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ebe7419f7f171146aca73258ca4dc4dea4558ee6a0bfc476ffe0abde7712137a |
|
MD5 | fc3f2911f045e3a19e444ce17dc93512 |
|
BLAKE2b-256 | 519bd053bf5644612ec6e5e771478a6711c4bf4b97f0ee101a03c8091fd3ca6b |