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 S3 and Google Cloud Storage buckets.
  • Normalization and rendering options for a variety of multispectral images, especially satellites.
  • Support for multichannel TIFF, JP2, and other less common file formats.

Quickstart

Run uvx image_tiles /path/to/folder

Installation

# Install default installation
$ pip install image_tiles

# Install with AWS S3 support
$ pip install image_tiles[aws]

# Install with Google Cloud Storage support
$ pip install image_tiles[gcp]

# Install with all cloud backends
$ pip install image_tiles[all]

Using uvx

You can also run image_tiles directly with uvx without installing:

# Run with default installation
$ uvx image_tiles /path/to/folder

# Run with AWS S3 support
$ uvx --with 'image_tiles[aws]' image_tiles s3://my-bucket/images/

# Run with Google Cloud Storage support
$ uvx --with 'image_tiles[gcp]' image_tiles gs://my-bucket/images/

# Run with all cloud backends
$ uvx --with 'image_tiles[all]' image_tiles /path/to/folder

Usage

# Serve local images
$ image_tiles ./path_to_folder

# Serve images from AWS S3
$ image_tiles s3://my-bucket/images/

# Serve images from Google Cloud Storage
$ image_tiles gs://my-bucket/images/

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.4.tar.gz (2.3 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.4-py3-none-any.whl (19.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: image_tiles-0.1.4.tar.gz
  • Upload date:
  • Size: 2.3 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.7

File hashes

Hashes for image_tiles-0.1.4.tar.gz
Algorithm Hash digest
SHA256 681263b209dbed41f64c10efaaafd7a22a02487778669579e55fdac3cf10b513
MD5 0d8f7a0bd4f5f68bae63f63afd369dae
BLAKE2b-256 fea3a7dbb831ba6b5e5699e640ce53f24f957748db8118cef7f89a1d17495cd4

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for image_tiles-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 5c22f3ba9ccfd238c23498e41751745d3e2d90049c3e286e006f85390b7891b9
MD5 e1a65e88e01ea3fa5c3c25aad192bc97
BLAKE2b-256 98a6c90a11f757201afcc658eb92f11d9f1a04d99e8ccdec375401ea1ce73295

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