Skip to main content

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)

example_page

Serving a folder of multispectral TIFFs:

example_sat

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 apply scaling (default)
  • scaling: Scale to 0-255, clipping negative numbers and scaling positive numbers.
  • sigmoid: Sigmoid normalization, as described in xarray true color
  • sentinel: 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


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.1.tar.gz (2.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

image_tiles-0.1.1-py3-none-any.whl (18.7 kB view details)

Uploaded Python 3

File details

Details for the file image_tiles-0.1.1.tar.gz.

File metadata

  • Download URL: image_tiles-0.1.1.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

Hashes for image_tiles-0.1.1.tar.gz
Algorithm Hash digest
SHA256 c76a1275fdb0955444f1f030977525911033398b8ca14d7c805f96b2e54c91e5
MD5 56ecfa919cda8231acc3cb4491e0c592
BLAKE2b-256 d9e2ebd64fd267d14cc253467af14a2731943c367255bf05154a9c896d537f70

See more details on using hashes here.

File details

Details for the file image_tiles-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: image_tiles-0.1.1-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

Hashes for image_tiles-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f78ae71e6a785d4e27bef0cc2558dec0c652b39d08ebe786be407b28a119ecba
MD5 483fd4105cc7423a3c4be0ecdb5e08f7
BLAKE2b-256 dd0114cad8f67cecdd0d6f3b35d615386184841123fa14cb94c7140f5fecdbf4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page